Sail E0 Webinar
Question
Consider the following program fragment, and choose the correct one
void main()
{
int a, b = 2, c;
a = 2 * (b++);
c = 2 * (++b);
}
Options:
A .  a = 4, c = 8
B .  a = 3, c = 8
C .  b = 3, c = 6
D .  a = 4, c = 6
E .  b = 4, c = 6
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers