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

Explanation: The correct way to define a function pointer is 'int (*ptr)(int, int);'.

Explanation by: Admin
The correct way to define a function pointer is 'int (*ptr)(int, int);'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
185
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
91%
Success Rate