Given the function definition

void something ( int a, int& b )
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
what is the output of the following code fragment that invokes something?
(All variables are of type int.)
r = 1;
s = 2;
t = 3;
something(t, s);
cout << r << ' ' << s << ' ' << t << endl;

a. 1 14 3
b. 1 10 3
c. 5 14 3
d. 1 14 9


a. 1 14 3

Computer Science & Information Technology

You might also like to view...

Design view of a table shows the data contents within a table

Indicate whether the statement is true or false

Computer Science & Information Technology

A network administrator is configuring access control for the sales department which has high employee turnover. Which of the following is BEST suited when assigning user rights to individuals in the sales department?

A. Time of day restrictions B. Group based privileges C. User assigned privileges D. Domain admin restrictions

Computer Science & Information Technology

CRC-____ is found in Ethernet LANs.?

A. ?5 B. ?12 C. ?32 D. ?64

Computer Science & Information Technology

Which of the following protocols verifies the Web site to which a user is connected?

a. Inter-Switch Link b. Internet Protocol Control Protocol c. Tool Command Language d. Secure Sockets Layer

Computer Science & Information Technology