Q. Which of the below syntax is the correct way of declaring a function?
β
Correct Answer: (B)
data_type function_name (parameter) { }
Explanation: The correct syntax of declaring a function in C:
data_type function_name (parameter){
}
data_type function_name (parameter){
}