Which statement correctly defines a structure named "Person" with members "name" and "age" of type char* and int respectively?
A. struct Person { char* name; int age; }
B. struct Person { name, age; }
C. struct { name; age; } Person;
D. struct { char* name, int age; } Person;
Answer: Option A
Related Questions on Structure and Union
In a structure, what are the members also known as?
A. Variables
B. Properties
C. Objects
D. Elements
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above
Join The Discussion