C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - Point Out Errors (Q.No. 2)
2.
Point out the error in the program?
typedef struct data mystruct;
struct data
{
int x;
mystruct *b;
};
Answer: Option
Explanation:
Here the type name mystruct is known at the point of declaring the structure, as it is already defined.
Discussion:
17 comments Page 2 of 2.
Satyaprakash said:
1 decade ago
Can anyone explain? why do you use typedef?
Janani said:
1 decade ago
What is the use of using this typedef?
Zddd said:
7 years ago
@Swathi.
Nice Explanation. Thanks.
Nice Explanation. Thanks.
Krishna said:
1 decade ago
Please explain the typedef?
Mayank said:
1 decade ago
Can any one explain this?
Gavldl Srikanth said:
8 years ago
Nice Explanation. Thanks.
Deepa.k.m said:
1 decade ago
Please tell the reason.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers