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

number 6 please F.$16.10H.$15.25G.$15.50J.$14.50​
Chief Seattle says that if his people sell the land to the settlers, “you must henceforth give the rivers” brotherly kindness in The Earth is Precious. Based on
Why don’t we include the mass of an atoms electrons in the atomic mass?
HELP!!!!!!!!!!!!!!!! ***PLZ***
This is a graph of which function?
How have airplanes changed the way the world does business? Check all that apply.
2.01 quiz: misplaced and dangling modifiers
Assume that y varies directly with x. If y = -80 when x = -5, find y when x = -3 .
Who was elected to head to the Constitutional Convention in 1787? John Adams Patrick Henry John Paul Jones George Washington
Apply the definition of subtraction and properties of operations to find the result. 1/8-3/7-1/8