Given the following function:
int strange(int x,int y)
{
if (x > y)
Return x + y;
else
Return x - y;
}
What is the output of the following statement?
Cout << strange(4,5) << endl;
A) -1
B) 1
C) 9
D) 20
Correct Answer:
Verified
Q23: When you attach & after the dataType
Q25: Which of the following function prototypes is
Q29: A(n)_ parameter is a formal parameter that
Q31: If a formal parameter is a nonconstant
Q31: Which of the following function prototypes is
Q32: A(n)_ parameter s a formal parameter that
Q35: Given the following function: int next(int
Q36: A function prototype is _.
A) a definition,
Q36: Given the function prototype: double testAlpha(int u,char
Q38: Given the following function prototype: int test(float,char);,which
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents