Structure and typedef

This is a discussion on Structure and typedef within the C Programming forums, part of the General Programming Boards category; Have a basic question about strcture declaration and typedef
As per my understanding, when I say
int i,j,k;
compiler set ...

Originally posted by Roaring_Tiger I feel is it typedef keyword that will not allow compiler to set aside the memory for struct and referecing member of such strcuture gives error.

This is correct. The final parameter of a typedef takes the place of where you could normally create an instance (following the closing } of a structure. Using typedef removes this ability. You have to create your instances later. With a typedef, the final argument is the name of the new data type, not an instance of it.