Expression Evaluation (C++) Beginner Programming Exercise

Given: int a=2, b=7;

Calculate the value of the following expression: ___________________

a=4,b=1,a>b?++a:++b;

Correct answer: 5

Leave a Comment