Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int i = 0, k;
    if (i == 0)
        goto label;
        for (k = 0;k < 3; k++)
        {
            printf("hi ");
            label: k = printf("%03d", i);
        }
}

A. 0

B. hi hi hi 000

C. 0 hi hi hi 000

D. 000

Answer: Option D


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures