Q. Which of the following is a correct declaration of a function pointer?

  • (A) int *f();
  • (B) int (*f)();
  • (C) *int f();
  • (D) f int*();
πŸ’¬ Discuss
βœ… Correct Answer: (B) int (*f)();
Explanation: int (*f)(); declares a pointer to a function returning int.
Explanation by: Mr. Dubey
int (*f)(); declares a pointer to a function returning int.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate