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

Consider four sealed, rigid containers with the following volumes: 50 mL, 100 mL, 250 mL, and 500 mL. If each of these contains .25 moles of helium gas at stan
Please Help Thank You
Who advocated separation of the races?
Which of the following historical events directly contributed to the start of the scientific revolution in the 16th century
Which of the following words shows a correct plural form? Shelves Ponys Potatos Foxs
the function f(x)= 1000(2)^x where x is the number of weeks, represents the cicada population on a farm. Use a function to answer the following nation. What is
The negative of siempre is
Were the egyptians the first peopld to do surgeries
Determine height of the house
A number cube with the numbers 1, 2, 3, 4, 5, and 6 is rolled 1000 times. About how many times would it be expected that a number greater than 4 is rolled? A