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 traits of populations in the forest ecosystem have changed over time. What caused the traits to change?
Veronica earned $150 at work this past week in her paycheck. She wants to buy some necklaces which costs $6 each. She writes a function to model the amount of m
why did the citizens of Richmond, Virginia feel upset about the actions at Fort Sumter ?
how did martinique gain independence
What Is the National Prohibition Act?
An element with mass 1000 grams decays by 14.8% per minute. How much of the element is remaining after 11 minutes, to the nearest 10th of a gram?
Describe William Shakespeare in one word
There are 5 red balls,6 white balls and 7 green balls in a box.If one ball is taken without looking,what is the probability that it is white?
Zoey made 6 3/4 cups of fruit salad for a picnic. At the picnic, they ate 1/3 of the fruit salad. How much fruit salad did they eat?
Describe William Shakespeare in one word