Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C Scope of a Variable
Consider the following code segment:
int x=22, y=15;
x = (x > y) ? (x + y) : (x-y);
What will be the value of x after the code is executed?1
22
2
37
3
7
4
37 and 7