Question
1.
#include
2.
using namespace std;
3.
int add(int a, int b);
4.
int main()
5.
{
6.
int i = 5, j = 6;
7.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int add(int a, int b);
4.
int main()
5.
{
6.
int i = 5, j = 6;
7.
cout
Answer: Option C
Was this answer helpful ?
The value of a has been changed to 7, So it returns as 13.
Output:
$ g++ arg1.cpp
$ a.out
13
Was this answer helpful ?
More Questions on This Topic :
Question 4.
By default how the value are passed in c++?
....
Submit Solution