Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int n(char, int);
4.
int (*p) (char, int) = n;
5.
int main()
6.
{
7.
(*p)('d', 9);
8.
p(10, 9);
9.
return 0;
10.
}
11.
int n(char c, int i)
12.
{
13.
cout
Options:
A .  d9 9
B .  d9d9
C .  d9
D .  compile time error
Answer: Option A

None.
Output:
$ g++ pfu1.cpp
$ a.out
d9
9



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers