πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Neither code 1 nor code 2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
303
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Babita
Publisher
πŸ“ˆ
85%
Success Rate