Would this print out a+C+5 ?
|
cout << int('a')+int('C')+int('5');
|
1 2 3 4 5
|
int x=17, y=15;
cout << x+y/4; // =20
cout << x%3+4; // =6
cout << 2*x+3; // =37
cout << x-2*y+3; // = -10
|
Can someone check if they are correct?
Last edited on
thats all that is printed
I think its by int but all it said was:
3. cout << int('a)+int('C')+int('5');
It only gives one line to answer so I'm thinking that it is supposed to be more simple than that.
what happens to int('5')?
It's printing out the integer value of the character '5'.
Last edited on