adplus-dvertising
frame-decoration

Question

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

a.

Varies

b.

0

c.

Junk value

d.

Compile time error

Posted under C Programming

Answer: (d).Compile time error

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> register int x; void main() { printf("%d", x); }