Is the correct answer float or char | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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