Question: s. Given the function header void printSum(int a, int b) and the following main() progranm int main () int x-5 int y 2: return 0

 s. Given the function header void printSum(int a, int b) and

s. Given the function header void printSum(int a, int b) and the following main() progranm int main () int x-5 int y 2: return 0 which of the following would be a valid function call to the function printSum from main? a. printSum(x, y) b. printSum (int a, int b) c. printSum (a, b): d. e. printSum(int x, int y) none of the above are valid 39. What is wrong with the following code? void function2 (void) int a, b, result-0: cin >> a >> b; cout a >b," needs to be separated into 2 separate cin statements 40 The following is a vold Print2Lines ( a. function declaration (prototype) b. function call c function heading d. both a and c e both b and c 1. Which of the following may not be nested? a. switches b. loops c. function calls d. function definitions e. ifs 42. Consider the following function definition int fun (int x) return (3*x+2) What value is assigned to y after the next two statements have been executed? z - fun (2) yfun (fun (2))2 d. 10 e. 26 a. 80 b. 54 c. 78

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!