adplus-dvertising
frame-decoration

Question

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

here x is

a.

automatic variable

b.

static variable

c.

register variable

d.

global variable

Posted under C Programming

Answer: (a).automatic variable

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() { int x; } here x is

Similar Questions

Discover Related MCQs

Q. Automatic variables are initialised to

Q. Which of the following storage class supports char data type?

Q. The variable declaration with no storage class specified is by default:

Q. Property which allows to produce different executable for different platforms in C is called?

Q. C preprocessors can have compiler specific features

Q. C preprocessor is conceptually the first step during compilation

Q. Preprocessor feature that supply line numbers and filenames to compiler is called?

Q. A preprocessor is a program

Q. Which of the following are C preprocessors?

Q. #pragma exit is primarily used for?

Q. The C-preprocessors are specified with _________symbol.

Q. The preprocessor provides the ability for _______________

Q. What is the sequence for preprocessor to look for the file within <> ?

Q. Can function definition be present in header files?

Q. If the file name is enclosed in double quotation marks

Q. If the file name is enclosed in angle brackets

Q. Which of the following names for files not accepted?

Q. What is the advantage of #define over const?

Q. Which of the following properties of #define not true?

Q. The “else if” in conditional inclusion is written by?