MCQs > IT & Programming > C++ > Output of following program? #include using namespace std; int main() { char* upwork; try { upwork = new char[1024]; if (upwork == 0) throw 'Projects'; else cout<

C++ MCQs

What will be the output of following program? #include <iostream> using namespace std; int main() { char* upwork; try { upwork = new char[1024]; if (upwork == 0) throw "Projects"; else cout<<sizeof(upwork) << "Freelancers"<<endl; } catch(char *strg) { cout<<"Feedback"<<strg<<endl; } return 0; }

Answer

Correct Answer: It depends on the size of the data type.

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