Q:

What is the output of the below C code?

0

What is the output of the below C code?

#include<stdio.h>
int main()
{
    typedef auto int myAutoInt;
    myAutoInt data = 4;
    printf("%d",data);
    return 0;
}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

compiler error.

Explanation

typedef already consider as partial storage class, so you can not mix two storage classes at a time.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the variable in C?... >>
<< What is the difference between typedef & Macros?...