Structures, Unions, Enums

Q1:
Point out the error in the program?
typedef struct data mystruct;
struct data
{
    int x;
    mystruct *b;
};

A Error: in structure declaration

B Linker Error

C No Error

D None of above

ANS:C - No Error

Here the type name mystruct is known at the point of declaring the structure, as it is already defined.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.