Answer: Actual parameters
Answer: Formal parameters
Answer: False
Answer: All of the above
int mysubroutine(int x, char y, float z)
{
if (y == 'a') return(x);
if (z < 3.14) return(-x);
return(x*x);
}
int main()
{
int a = 1;
char c = '1';
cout << mysubroutine(3, 'a', 7.1);
a = mysubruotine(3, 'a', 1.2);
mysubroutine(1.0, 'c', 4);
c = mysubroutine(1, a, 3.2);
a = mysubroutine(1, c, 3.2);
}
Answer: The value returned by this statement is not used:
mysubroutine(1.0, 'c', 4);
int foo() { return(-1); }
int foo() { return('1'); }
int foo() { return(1.0); }
int foo() { return("1"); }
int foo() { ; }
void foo() { ; }
Answer: int foo() { return("1"); }