C Programming - Typedef
Exercise : Typedef - Point Out Errors
- Typedef - General Questions
- Typedef - Find Output of Program
- Typedef - Point Out Errors
- Typedef - Yes / No Questions
1.
In the following code snippet can we declare a new typedef named ptr even though struct employee has not been completely declared while using typedef?
typedef struct employee *ptr;
struct employee
{
char name[20];
int age;
ptr next;
}
2.
Point out the error in the following code?
typedef struct
{
int data;
NODEPTR link;
}*NODEPTR;
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers