• Home
  • What will be the output of the following C++ code? #include using namespace std; int func(int m = 10, int n) { int c; c = m + n; return c; } int main() { cout return 0; }
Question 1:
What will be the output of the following C++ code?
#include
using namespace std;
int func(int m = 10, int n)
{
int c;
c = m + n;
return c;
}
int main()
{
cout << func(5);
return 0;
}
A. 15
B. 10
C. compile time error
D. 30

These questions are from this test. Would you like to take a practice test?

C++ Quiz 5 | Englishfreetest.com