Vidyalelo
C++ Programming · Q42

Variables and Data Types in C++

Programming · C++ Programming · question 42

Q42

What is the correct way to declare a pointer to a character in C++?

A.
pointer char;
B.
char *ptr;
Answer
C.
char ptr;
D.
None of the above

Answer: Option B

Solution

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