haidenfirkins89781 haidenfirkins89781
  • 03-09-2019
  • Computers and Technology
contestada

Consider the following C++ program. #include using namespace std; int main() { cout << "Hello World " return 0; } In the cout statement, the missing semicolon in the code above will be caught by the?

Respuesta :

ExieFansler ExieFansler
  • 06-09-2019

Answer:

Compiler.

Explanation:

Actually there are two things missing in the code first is the header file.There is only # include no filename is there like<iostream>,,bits/stdc++.h> etc.cin ,cout will not work until iostream is included in the program.After including the header properly the missing semicolon will be caught by the compiler.The error will be as following:-

expected ';' before return.

Answer Link

Otras preguntas

question number 4 please help
What is the symbol of the Republican Party?
Calculate the number of oxygen atoms in 2.00 moles of Mn2O7
Two men who signed the Declaration of Independence went on to become U.S. presidents. Who were they?
What is the symbol of the Republican Party?
What's a Mudslinging. Please help?
What iconic July 4th edible was nicknamed by sports cartoonist Tad Dorgan? a. hot dog b. popsicle c. pop
what is the dot in i called?
The heads of which presidents are carved into Mount Rushmore?
This haunting and eloquent military tune originated as a signal to mark the end of the day, and is used today at funerals, wreath-laying services, and memorial