Computer Science, asked by aanchaldhiman7539, 18 days ago

int val1 = 10;
int val2 = 20;
int max = val1 >= val2 ? val1 : val2;

Answers

Answered by 5akanksha
0

Answer:

Here val1=10 and val2 is 20

10 is not greater than or equal to 20

so expression 10>=20 is false.If expression is true then val1 is stored In max and if expression is false val2 is store in max.In the example above expression is false so val2 is stored in max

max=20

Similar questions