Vidyalelo
C++ Programming · Q31

Introduction to C++

Programming · C++ Programming · question 31

Q31

Which of the following is the correct syntax for declaring a pointer to an integer in C++?

A.
ptr int;
B.
int ptr;
C.
pointer int;
D.
int* ptr;
Answer

Answer: Option D

Solution

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