Sail E0 Webinar
Question


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
Options:
A .  11
B .  12
C .  13
D .  compile time error
Answer: Option C

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers