What will be the output of the following program fragment? int i = 10; void…
What will be the output of the following program fragment?
int i = 10; void main() { int i = 20; { int i = 30; printf("%d, %d", i, ::i); } }
- A.
30,10
- B.
30,20
- C.
20,30
- D.
More than one of the above
- E.
None of the above
Attempted by 62 students.
Sign up free to check your answer
Sign up freeLoading lesson…

