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;};
Which of the following is a properly defined structure
Answer: D) struct a_struct {int a;};
Explanation:
The a_struct is declared as structure name and its data element is a.
Subject: C++ – Technology