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

The price of a car has been reduced from $16,500 to $11,055. What is the percentage decrease of the price of the car?
Add. 8/9+2/3+1/6 11/18 11/15 1 13/18 1 2/9
A third-grade classroom includes several students who are English Language Learners (ELLs). The students are reading a novel, and the teacher has introduced a l
Help pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Samira and Sonia each have a bag containing 20 sweets. In each bag, there are 5 red, 6 green and 9 yellow sweets. (a) (b) Samira chooses one sweet at random fro
If an electric train moves south, which direction does the train smoke go?answer with intelligence.​
what are the coordinates of A,B and C​
Does the definition of democracy below accurately capture everything about the meaning of democracy? Explain. Is the American political system democratic? Expla
I have 4 more quarters than dimes and 3 less pennies than dimes. What is the value of my coins, in cents
Please help pleaseeee