+ 2
Can I use a float variable as operand of %?
Can I do that? Because I saw in a exam with a question "What is the output?"
2 Respuestas
+ 5
No. % is only for int types. You would need to use fmod()
+ 1
Ok thanks.
Can I do that? Because I saw in a exam with a question "What is the output?"