posted 13 years ago
in the following example:
int a = 3;
double b;
b=a<=10?0.25:1.8;
I don't understand what the second line of code (double b) is doing? Is it doubling the value of 3, or does it have something to do with the data type, and b is assumed to be consecutive to 3?