Vidyalelo
C++ Programming · Q33

Pointers and References in C++

Programming · C++ Programming · question 33

Q33

Choose the right option. string* x, y;

A.
x is a pointer to a string, y is a string
Answer
B.
y is a pointer to a string, x is a string
C.
both x and y are pointers to string types
D.
y is a pointer to a string

Answer: Option A

Solution

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