MCQs > IT & Programming > C++ > Consider the following code: #include using namespace std; int main() { cout << 'The value of __LINE__ is ' <<__LINE__; return 0; } What will be the result when the above code is compiled and executed?

C++ MCQs

Consider the following code:

 #include<iostream>
 using namespace std;
 int main()
{
 cout << "The value of __LINE__ is " <<__LINE__;
 return 0;
 }

 What will be the result when the above code is compiled and executed?

Answer

Correct Answer: The code will compile and run without errors

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