-
variable declarations
Hello,
I have been working on this stuff for one hour every day for the past few days and i still dont get it.
"if "a" is an int, "b" is a double, and "c" is a char, what is the type of value returned by the expression "c % a", "char(a)", or "int(b)"
If you can help at all please do I am very desperate for answers!!!
[COLOR=blue]
-
"c % a",
%, is the Modulo operator it produces the ramainder of a division , such that 25 % 24 would equal 1,
a char is actually single byte int , where-as and int is 4 bytes
"char(a)",
this converts a to a char,
or "int(b)"
this converts b to an int