The output of this program is
Int
Main () { cout CC"Hello world!'' return
0; }
इस प्रोग्राम का आउटपुट है
Int
Main () { cout CC"Hello world! return
0; }
Select one:
Q. Syntax error
Syntax error
06. Hello world!
Hello World!
c. Hello World
Hello World
d. O
Answers
Answer:
syntax error (according to me maybe my ans is wrong but acc to me synrax error is most appropriate ans
The correct option is A) Syntax error. The reason is that both code blocks have missing quotation marks at the end of the string in the cout statement. The corrected code should be:
First code block:
The first version is missing a quotation mark after the cout statement, which will cause a syntax error when the program is compiled. The correct version would be:
int main() {
cout << "Hello world!" << endl;
return 0;
}
Second code block:
The second version has the same syntax error as the first, but it also has an extra C after cout. The correct version would be:
int main() {
cout << "Hello world!" << endl;
return 0;
}
Without the closing quotation mark, the code will not compile and will produce a syntax error.
Therefore, option A is the correct answer.
To learn more about Syntax error from the given link.
https://brainly.in/question/27333111
#SPJ3