What is the output of the following function call, given the function definition below?
cout << loopFunction (5, 3); // function call
int loopFunction (int x, int y) // function definition
{
int local = x;
for (int c = 0; c < y; c++)
local += 2;
return local;
}
a. 6
b. 7
c. 9
d. 11
d. 11
Computer Science & Information Technology
You might also like to view...
An SSD normally requires a special driver in Windows Vista, 7, 8, or 10
Indicate whether the statement is true or false
Computer Science & Information Technology
What type of attack exploits a lack of bounds checking on the size of data stored in an array?
A. buffer overflow B. SQL injection C. phishing D. ActiveX control
Computer Science & Information Technology