What is the value of b after the following function call?

int b = 3;
mystery (b); // function call

void mystery (int &val) //function definition
{
for (int c = 0; c < 5; c++)
val += 2;
}

a) 2
b) 3
c) 13
d) 15

c) 13

Computer Science & Information Technology

You might also like to view...

Is the SQL Server Audit feature supported in the Amazon RDS SQL Server engine?

A. No B. Yes

Computer Science & Information Technology

In a regular expression, the dot character "." matches any single character. When the dot character is followed by a(n) ________, the regular expression matches any number of unspecified characters.

a. plus sign (+) b. question mark (?) c. dollar sign ($) d. asterisk (*)

Computer Science & Information Technology