1.  What is wrong with the following code ?
struct Person{
char *name;
struct Person Mother, Father;
}Anita;


The ; should appear after the } and Anita be defined later
name should be defined as an array
struct Person Mother, Father; must be defined as struct Person *Mother, *Father;
There is no error in the code


Answer

 Option

struct is new data type which contains many different types of member variables under a single name.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Which of the following is a properly defined struct ?


struct { int a; }
struct a_struct { int a; }
struct a_struct int a;
struct a_struct { int a; };


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Which of the following structure declaration will throw an error ?


struct temp{}s;
main(){}

struct temp{};
struct temp s;
main(){}

struct temp s;
struct temp{};
main(){}

None of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Which properly declares a variable of struct printexam ?


struct printexam;
struct printexam var;
printexam;
int printexam;


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  User - defined data type can be derived by ?


struct
enum
typeof
All of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report