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

Please, look at the photo and give the ansver.
what is the square root of 141?
What modern First Lady wore a bejeweled American Flag in her lapel on every Fourth of July? Pat Nixon, Jackie Kennedy, Hillary Clinton Betty Ford?
What American President was famous for playing golf every Fourth of July?
Jackie enjoys having her boyfriend Seth hold her close when they are watching television. She appreciates it when Professor Jones maintains a distance of at le
What are two movies which titles relate to 4th of July?
This US national park covers 270 square miles, and 95% of it is underwater. Divers and snorkelers explore its shipwrecks and a bright coral reef, home to reef
Individuals who are approximately the same age and are linked by common interests, including friends, classmates, and the 'kids in the neighborhood,' are most
Where does the Liberty Bell hang?
The point where the two axes intersect (0,0).