1. Engineering
  2. Computer Science
  3. these are for c using microsoft visual studio...

Question: these are for c using microsoft visual studio...

Question details
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&param2) ( 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 < 100; indext+) preplindex]-0;
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution