Consider the following function definition:
int func(int x, double y, char u, string name) {
//function body
}
Which of the following are correct function prototypes of the function func?
a. int func(x, y, u, name);
b. int func(int s, double k, char ch, string name);
c. int func(int, double, char, string);
d. func(int, double, char, string
Options [b] and [c] both are correct.
b. int func(int s, double k, char ch, string name);
c. int func(int, double, char, string);
A function can be created by mentioning argument types as well as with argument types along with argument names.
Comments
Leave a comment