Vidyalelo
C++ Programming · Q12

Structures and Unions in C++

Programming · C++ Programming · question 12

Q12

What is the correct syntax to define a structure pointer in C++?

A.
structName *ptr;
Answer
B.
ptr *structName;
C.
struct *ptrName;
D.
*ptrName structName;

Answer: Option A

Solution

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