Quiz on Functions
Test your knowledge of functions in C++.
1
What is displayed when the following program is executed?
#include <iostream>
using namespace std;
int getsum(int y, int z)
{
int mysum = y + z;
return mysum;
}
int main()
{
getsum(5,6);
return 0;
}
A)
It gives no output.
B)
(5+6)
C)
11
D)
56
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.