Question
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
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
Answer: Option A
Was this answer helpful ?
None.
Output:
$ g++ pfu1.cpp
$ a.out
d9
9
Was this answer helpful ?
More Questions on This Topic :
Question 3.
What we will not do with function pointers?
....
Submit Solution