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

Which of the following is essential for life on Earth?
Which has lower pH, a lake river or wetland? Why?
Michelle took a survey of the students in her grade to see how many are likely to join a book club if she starts one. She surveyed 48 students and 10 said they
The fully developed classical style in music flourished during the period A. 1600-1750. B. 1730-1770. C. 1770-1820. D. 1820-1900.
Can someone help me with this?
How Do I take care of my skin if i am suffering with vitiligo?
What two main biological processes are responsible for the cycling of oxygen
Why was millet a sutible grain for planting in Central Africa? ​
In the story everyday use by alice why does dee think maggie should not have the quilts
The northwest region is different from eastern areas of China because