What will be the output of the following program? Void main () { int i ; for…

2025

What will be the output of the following program?

Void main ()

{

int i ;

for (i = 0 ; i < 3 ; i ++);

printf ("%d ", i);

}

Answer: A. 3

  1. A.

    3

  2. B.

    0 1 2

  3. C.

    0 1 2 3

  4. D.

    Errors

Attempted by 382 students.

Show answer & explanation

Correct answer: A

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…