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); } }

  1. A.

    30,10

  2. B.

    30,20

  3. C.

    20,30

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 62 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Computer Operator Grade B

Loading lesson…