Sail E0 Webinar
Question

Consider the following statements:
int x = 22,y=15;
x = (x>y) ? (x+y) : (x-y);


What will be the value of x after executing these statements?


Options:
A .  22
B .  37
C .  7
D .  Compile Error
Answer: Option B




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers