What is the output of the following program? void main() { printf("1"); goto…

TCS · 2026

What is the output of the following program?

void main()

{

printf("1");

goto xyz;

printf("2");

xyz:

printf("3");

}

  1. A.

    1 2

  2. B.

    23

  3. C.

    1 2 3

  4. D.

    13

Attempted by 285 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tcs Ignite Smart Hiring

Loading lesson…