adplus-dvertising
frame-decoration

Question

What is the output of this C code?
#include <stdio.h>
    void main()
    {
        register int x;
        printf("%d", x);
    }

a.

0

b.

Junk value

c.

Compile time error

d.

Noting

Posted under C Programming

Answer: (b).Junk value

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this C code? #include <stdio.h> void main() { register int x; printf("%d", x); }