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

Explanation: The correct way to declare a pointer in C++ is 'int *ptr;'.

Explanation by: Praveen Singh
The correct way to declare a pointer in C++ is 'int *ptr;'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
146
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
95%
Success Rate