GkSeries.com

Q.

What is wrong with the following code?

	struct Person{
		char *name;
		struct Person Mother, Father;
	}Anita;
	
[A] The ; should appear after the } and Anita be defined later
[B] name should be defined as an array
[C] struct Person Mother, Father; must be defined as struct Person *Mother, *Father;
[D] There is no error in the code
Answer & Explanation
Option: [C]

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

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test