Vidyalelo
C++ Programming · Q16

Structures and Unions in C++

Programming · C++ Programming · question 16

Q16

What is the correct syntax to declare a structure with a tag name in C++?

A.
structName { /* members */ };
B.
struct { /* members */ } structName;
C.
structName typedef { /* members */ };
D.
struct structName { /* members */ };
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board