Question: Question 10 Which of the following is a valid function prototype for the following function definition? void TotalAmount(int a, float &b, string name); { //...........

Question 10

Which of the following is a valid function prototype for the following function definition? void TotalAmount(int a, float &b, string name); { //........... } void TotalAmount(int, float, string); void TotalAmount(int &, float &, string &); void TotalAmount(int, float &, string); intTotalAmount(int, float, string);

-------------------------------- Question 11

Which of the following is a valid function name? display Total11 displayTotal11 11displayTotal The second and third names are correct

-------------------------------- Question 12

Which of the following is a valid function header for a C++ function that receives a number with a decimal first and an integer second, and then returns the sum of the numbers passed to the function. int sum (double num1, int num2) int sum (int num1, double num2) double sum (double num1, int num2) double sum (int num1, double num2)

-------------------------------- Question 13

Which of the following can be used to call the function calcNewPrice? //prototype for calcNewPrice void calcNewPrice(float, float &); calcNewPrice(float a, float b); cout << calcNewPrice( a, b); calcNewPrice(a, b); calcNewPrice( a, &b);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!