What is the output of this line of code, given the following definition?

cout << aNumber (2, 5); // code in main

int aNumber (int x, int y) { // function definition
return (2 * x - y);
}

a) -6
b) -1
c) 6
d) 8


b) -1

Computer Science & Information Technology

You might also like to view...

If you add a text box to the form header, and then enter the title in the text box, an error message, such as ____ appears in the text box in Form view.

A. #Name? B. #Control? C. ?Name# D. ?Control#

Computer Science & Information Technology

The programs that translate high-level language programs into machine language are called _______.

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

Computer Science & Information Technology

Specific data values, such as constants, words, dates, or letters, can be shown in a separate field in a query using a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The recommended minimum font size for text in the body of a slide is ________ points

A) 12 B) 16 C) 18 D) 20

Computer Science & Information Technology