Vidyalelo
C++ Programming · Q169

Functions and Procedures in C++

Programming · C++ Programming · question 169

Q169

What will be the output of the following C++ code? #include using namespace std; void func(int x) cout << x ; int main() void (*n)(int); n = &func; (*n)( 2 ); n( 2 ); return 0;

A.
2
B.
20
C.
21
D.
22
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board