What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?
Answer Posted / vikraman85
In the first its simply structure,by declaring structure
variable accessors we can access those elements inside the
structure..
eg.struct x1 a,b,c;
In the next one the x2 acts as a datatype..
b'coz of the typedef function..
we can use x2 as datatype for the further calculations like
int,float which are predefined datatypes,but this is
manually defined datatype..
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is a void pointer? When is a void pointer used?
Why is c called c not d or e?
What is the use of getchar functions?
What is a header file?
What is function in c with example?
What is the difference between class and object in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Why is c called c?
What is a constant?
Do pointers need to be initialized?
Explain why can’t constant values be used to define an array’s initial size?
Why do we need volatile in c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is the difference between the = symbol and == symbol?
What is meant by operator precedence?