What is the output of this C code?
void main()
{
int x;
}
here x is a
Answer: A
Correct answer: automatic variable
x is declared inside a function with no storage class, so it is automatic by default - on the stack, uninitialised, and gone when main returns.
Please log in or register to report this question.