Computer Science, asked by dhanukotanaveenkumar, 4 months ago

2) Which of the following is the correct syntax to print the message in C++ language?
a. cout << "Hello world!",
b. Cout << Hello world! ;
c. Out <<"Hello world!;
d. None of the above​

Answers

Answered by ayanzubair
24

Explanation:

Motion, in physics, change with time of the position or orientation of a body. Motion along a line or a curve is called translation. ... In both cases all points in the body have the same velocity (directed speed) and the same acceleration (time rate of change of velocity).

Answered by mindfulmaisel
6

a. cout << "Hello world!";

Syntax in C++:

  • In C++ programming language, "cout" prints the content which is written in the quotation marks
  • It must be followed by an operator "<<"
  • After the content is written in the quotation marks, a semi-colon must be used to denote the end of the particular line

Hence, the correct syntax to print the output or message in C++ is: cout << "Hello world!";

Similar questions