πŸ“Š C++
Q. Which of the following is the correct way to declare a pointer in C++?
  • (A) int* ptr;
  • (B) ptr int*;
  • (C) pointer int*;
  • (D) int ptr*;
πŸ’¬ Discuss
βœ… Correct Answer: (A) int* ptr;

Explanation: In C++, to declare a pointer, the correct syntax is 'type* pointer_name'.

Explanation by: Vikash Gupta
In C++, to declare a pointer, the correct syntax is 'type* pointer_name'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
93%
Success Rate