Is the correct answer float or char | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is the correct answer float or char

Which of the following data type will throw an error on modulus operation(%)? 1  char 2  short 3  int 4  float 5 long Is the correct answer float or char

22nd Apr 2020, 10:36 AM
Mohamad Alkaleeh
5 Answers
+ 3
What ~ swim ~ said is right floats can't take % we need to go for fmod();
23rd Apr 2020, 3:35 PM
Nikhil Maroju
Nikhil Maroju - avatar
0
🌿 Nandini Chaudhary 🌿 Thank you for the explanation.
23rd Apr 2020, 7:15 AM
Mohamad Alkaleeh
0
👍👍
23rd Apr 2020, 3:37 PM
Mohamad Alkaleeh
- 1
~ swim ~ My friend, I have an exam after two days and I have many questions That i have to know the correct answer I don't have much time to research and remember these details. Finally this place is for discussion of questions
22nd Apr 2020, 11:32 AM
Mohamad Alkaleeh
- 2
I cann't 😂 ~ swim ~ l think Ans is char Like what A J #Infinity Love said Char doesn't store numbers
22nd Apr 2020, 11:14 AM
Mohamad Alkaleeh