Sail E0 Webinar
Question
What is the output of following set of code ?int a,b;a = (b = 10) + 5;
Options:
A .  b = 10, a = 5
B .  b = 15, a = 5
C .  a = 15, b = 10
D .  a = 10, b = 10
Answer: Option C


b is assigned 10 and after that its value is added with 5 and then saved in a, so a will be 15.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers