+ 1
Q. Consider The Following Statements: int x=22,y=15; Z=(x>y)?(x+y): (x-y);
What will be the value of Z after executing these statement ? 1)22 2)37 3)7 4)Error .cannot be executed.
3 ответов
0
if you have previously declared the variable Z then answer will be 37 else it would be compilation error.
0
It's 4.
c++ is case sensitive. so z and Z are two different variables.
Z=37
0
What is the value of x after these statements execute?
int[ ] a = {4, 7, 2};
int x = a[0]+a[2];