Exam4Training

What will be the output of the program?

What will be the output of the program?

#include <iostream>

using namespace std;

int fun(int);

int main()

{

cout << fun(5);

return 0;

}

int fun(int i)

{

return i*i;

}
A . 25
B.5
C.0
D.1

Answer: A

Exit mobile version