Evaluate the following expression and display the output:
int x,y=3,z=5;
i)x=(y>z)?z:y;
cout<
ii)x+++y-z%3;
cout<
Answers
Answered by
1
Answer:
Explanation:
i) x= (3>5)?5:3;
Answer :3
ii)x++ + y - z %3
x=3
y=3
z=5
=3+3-5%3
=3+3-2
= 4
Answered by
0
Answer:
i ) x = y. i .e x = 3
ii) 3 + 4 - 5 % 3
= 3 + 4 - 1
= 3 + 3
= 6 .
Similar questions
English,
5 months ago
Math,
5 months ago
Business Studies,
11 months ago
Science,
11 months ago
Social Sciences,
1 year ago
Science,
1 year ago