Given the following function:
int strange(int x, int y){if (x > y)return x + y;elsereturn x - y;
}what is the output of the following statement?cout << strange(4, 5) << endl;

A. -1
B. 1
C. 9
D. 20


Answer: A

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. True/False: Comments are ignored by the computer when the program executes. 2. True/False: A single-alternative selection structure always contains an Else clause. 3. True/False: The assignment operator and the comparison operator are the same.

Computer Science & Information Technology

What are the four basic activities of agile development?

What will be an ideal response?

Computer Science & Information Technology

A performance feature of lazy evaluation is the ability to perform ____________ evaluation— that is, to stop processing the stream pipeline as soon as the desired result is available.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

File information such as type, size, and date are called file ________

A) attributes B) extensions C) properties D) parameters

Computer Science & Information Technology