A

Admin • 802.91K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
The correct syntax of declaring a function in C:

data_type function_name (parameter){
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.