Home »
MCQs »
C++ MCQs
Which of the following is the incorrect way to declare a pointer?
136. Which of the following is the incorrect way to declare a pointer?
- int *ptr;
- int* ptr;
- int &ptr;
- int *ptr=0;
Answer: C) int &ptr;
Explanation:
The 3rd option is the incorrect way to declare a pointer.