MCQs > IT & Programming > C++ > What is the output of the following code? #include using namespace std; void func(int x) { cout << x ; } int main(int argc, const char * argv[]) { void (*n)(int); n = &func; (*n)( 5 ); n( 8 ); return 0; }

C++ MCQs

What is the output of the following code? #include using namespace std; void func(int x) { cout << x ; } int main(int argc, const char * argv[]) { void (*n)(int); n = &func; (*n)( 5 ); n( 8 ); return 0; }

Answer

Correct Answer: 58

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it