Hello,
Ok, my question is; if "a" is an int, "b" is a double, and "c" is a char, what is the type of value returned by the expression "a - b"?
I just dont under stand it. If you know what an int, double, or char is please tell me!
Hello,
Ok, my question is; if "a" is an int, "b" is a double, and "c" is a char, what is the type of value returned by the expression "a - b"?
I just dont under stand it. If you know what an int, double, or char is please tell me!
ok look at it like this....
an int is a whole number.It has no fractional part.
a double is a real number that can have a fractional part.
10 is an int
0.5 is a double.
10 - 0.5 = int/double ??
you see if you can work it out.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi