option c. 2 is not printed by the above code.
f()
{
w = 5; Line 1
w = 2*Z+2; Line 2
}
g()
{
Z = W+1; Line 3
Z = 3Z - W; Line 4
printf(Z); Line 5
}
Case1: 1-3-2-4-5 This sequence will give output as 4.
Case 2: 3-1-4-5-2 This will give -2 as output.
Case 3: 3-1-2-4-5 This will give -1 as output.
- CMI 2010
- CMI 2012
- gate 2015