Basic and Advance C Question:
Download Questions PDF

C is not C++. Typedef names are not automatically generated

Answer:

Why doesn't
struct x { ... };
x thestruct;

work?

C is not C++. Typedef names are not automatically generated for structure tags. Either declare structure instances using the struct keyword:
struct x thestruct;
or declare a typedef when you declare a structure:
typedef struct { ... } x;
x thestruct;

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Are enumerations really portable?What is the auto keyword good for?