B

Babita • 7.70K Points
Tutor III

Q. Which of the following C++ code will give error on compilation?

Code:
================code 1=================
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
	cout<<"Hello World";
	return 0;
}
========================================
================code 2=================
#include <iostream>
int main(int argc, char const *argv[])
{
	std::cout<<"Hello World";
	return 0;
}
========================================
  • (A) Code 1 only
  • (B) Neither code 1 nor code 2
  • (C) Both code 1 and code 2
  • (D) Code 2 only
  • Correct Answer - Option(B)
  • Views: 191
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics