Answer to Question #302067 in C++ for Imzi

Question #302067

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

1
Expert's answer
2022-02-24T04:19:31-0500

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.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog