Examveda

What will be the output of the following C code?
#include <stdio.h>
    int main()
    {
        int y = 10000;
        int y = 34;
        printf("Hello World! %d\n", y);
        return 0;
    }

A. Compile time error

B. Hello World! 34

C. Hello World! 1000

D. Hello World! followed by a junk value

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals