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 are two dimensional arrays alternatively called as?
What is string length in c?
What does != Mean in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What does *p++ do?
What language is lisp written in?
explain what are pointers?
What is variable and explain rules to declare variable in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is .obj file in c?
Where are some collections of useful code fragments and examples?
What is the meaning of 2d in c?
Write a program to print factorial of given number using recursion?
can any one provide me the notes of data structure for ignou cs-62 paper
What is the auto keyword good for?