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: Option D
Related Questions on Introduction to C plus plus
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream

Join The Discussion