Q. Which of the following will correctly declare a function in C?

  • (A) function int foo();
  • (B) int foo();
  • (C) declare foo();
  • (D) func foo() int;
πŸ’¬ Discuss
βœ… Correct Answer: (B) int foo();
Explanation: int foo(); is a valid function declaration in C.
Explanation by: Mr. Dubey
int foo(); is a valid function declaration in C.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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