Which of following is a correct format for declaration of function?

Which of the following is a correct format for declaration of function?

Which of the following is a correct format for declaration of function? mcq and its answer is provided on this page.

Which of the following is a correct format for declaration of function?

Que. Which of the following is a correct format for declaration of function?
a. a) return-type function-name(argument type);
b. b) return-type function-name(argument type){}
c. c) return-type (argument type)function-name;
d. d) all of the mentioned
Answer: a
Explanation : None.


Comments