Question
1.
#include
2.
using namespace std;
3.
void func(int x)
4.
{
5.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
void func(int x)
4.
{
5.
cout
Answer: Option D
Was this answer helpful ?
As we are calling the function two times with the same value, So it is printing as 22.
Output:
$ g++ pfu.cpp
$ a.out
22
Was this answer helpful ?
Submit Solution