What is the output of the following line of code, given the function definition that follows:
cout << calc (1, 2) + calc (2,3); // code in main
int calc (int x, int y) // function definition
{
x = x + 1;
return x % y;
}
a) 0
b) 1
c) 2
d) none of the above
a) 0
Computer Science & Information Technology
You might also like to view...
Double-click the title area in the Mail Merge pane to dock the pane in place
Indicate whether the statement is true or false
Computer Science & Information Technology
You can print ________ with 1, 2, 3, 4, 6, or 9 slides per page
Fill in the blank(s) with correct word
Computer Science & Information Technology