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 statements is true about the Emily Dickinson poem 'Because I Could Not Stop For Death?' A. It portrays death as something not to be
What was significant about the transfer of power between parties in 1801?
_______ rock can be changed directly into _______ rock with the application of heat and pressure.
What is one reason that Thomas Paine thinks the colonies stand a good chance against the British?
Why is only one molecule of N2 needed to produce 2 molecules of NH3? Please help a. Because nitrogen is generated b. Because there are no nitrogen molecules in
5x 2y = 20, when x = 0.3
What are two ways that the Earth's atmosphere is important to life on Earth?
How did the initially small slide in stock prices lead to the stock market crash?
What is the change in y divided by the change in x called?
find the length of the radius for this circle.(x-3)2+(y-5)2 =8