Answered step by step
Verified Expert Solution
Question
1 Approved Answer
These are for C++ using Microsoft visual studio 14. A function prototype must specify the name of a function and the name and type of
These are for C++ using Microsoft visual studio
14. A function prototype must specify the name of a function and the name and type of each of its parameters. Tor F?(2) In the following function heading, which parameters are value parameters and which are reference parameters? (2) void ExamPrep (string& name, int age, float& salary, char level) 16. What is wrong with the following function? (4) void Power (int&x, int& y, int& result)I I/ raise x to the y power result 1; while (y>0) result = result * x; yi 17. A local variable can be referenced anywhere within the block it is declared. Tor F? 18. Functions can be called from other functions beside main. T or F?- (2) 19. A global variable can be referenced anywhere within a program. Tor F? (2) 20. A function parameter is local to the entire block that is the body of the function. T or F? 21. What is wrong with the following function? (3) int examPrep (int param1, int¶m2) ( if (param1- param2) return param2; else if (param2 > param1) return param1; return param1 param2; 22. What is wrong with the following function? (3) void Maximum (int a, int b, int& max) f if (a > b) max else max- b return max; a 23. Given the following declarations, how would assign the name Sally Ellen Strong to the studentName field of the variable sally? (4) struct Name t string first; string middle string last; Name yourName; Name myName; struct studentRecord Name studentName; Name teacherName; int gradeNumber string grades studentRecord sally; 24. The components of an array can be of different types. T or F? (2) ollowing code segment? (3) int prep[100]; for (int index - 1; index Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started