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

A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
is it possible for a distance versus-time graph to be a vertical line?
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
.is a pot holder a conductor or a insulator
When was William Shakespeare born
Rewrite the function c(x) =9(x+3) using the distributive property
two identical freight cars roll without friction towards each other on a level track. one car rolls 2 m/s the other 1 m/s. after the cars collide they couple an
If the speed of an object is tripled, its kinetic energy will be
How many minutes are in 36 hours?
How many minutes are in 36 hours?