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

I need help on this math problem.!!!
find the value of x if the points (x,5) and (3,7) lie on the line whose slope is 4/7
What best describes the cell theory
Look at the triangle: A right angle triangle is shown with hypotenuse equal to 13 centimeters. An acute angle of the triangle is labeled as x degrees. The side
the sum of three consecutive numbers is 72 what are the smallest of these numbers
What role did Ann putnam play in the dancining in the forrest
A large soft drink costs one and a half times as much as small soft drink. If a small drink costs n dollars, write an expression representing how much a large
Which sentences in the passage correctly describe a function? A. A function uses arguments and returns a value after performing calculations. B. A function such
find four consecutive integers such that 5 times the fourth diminished by twice the second is 7
Write an equation in point-slope form of the line through point J (4, 1) with slope -4.