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
Why do we use & in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Write the syntax and purpose of a switch statement in C.
What is c standard library?
What are local variables c?
Can you pass an entire structure to functions?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Explain what is output redirection?
Who developed c language?
What is 1f in c?
What is the difference between a function and a method in c?
What is header file in c?
What is s or c?
Why void is used in c?
Why we use int main and void main?