What is the output of the following function call, given the function definition below?
cout << repeater (3, 7); // function call
repeater (int a, int b) // function definition
{
int num = 2;
for (int c = a, c < b, c++)
num += c;
return num;
}
a) 2
b) 10
c) 14
d) 20
d) 20
Computer Science & Information Technology
You might also like to view...
What is the generic condition in a for statement?
A. i AND N B. i N C. i != N D. i < N
Computer Science & Information Technology
To determine whether a file was opened successfully, one can use the ___________ fstream member function
a) close( ) b) overloaded operator <<( ) c) open( ) d) eof( ) e) flush( )
Computer Science & Information Technology
You can easily display Twitter's Trends list on the ________ page
A) #Discover B) Me C) @Connect D) #Trends
Computer Science & Information Technology
A digitally signed database requires a password to open it
Indicate whether the statement is true or false
Computer Science & Information Technology