Q. Which of the below syntax is the correct way of declaring a function?

  • (A) return function_name () { }
  • (B) data_type function_name (parameter) { }
  • (C) Void function_name ( )
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) data_type function_name (parameter) { }
Explanation: The correct syntax of declaring a function in C:

data_type function_name (parameter){
}
Explanation by: Team MCQ Buddy
The correct syntax of declaring a function in C:

data_type function_name (parameter){
}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
311
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
94%
Success Rate