Which of the following is a properly defined structure?
A) struct {int a;} B) struct a_struct {int a;}
C) struct a_struct int a; D) struct a_struct {int a;};
Answer: D) struct a_struct {int a;};
Explanation:
The a_struct is declared as structure name and its data element is a.
Which of the following struct definitions is correct in c++?