0
This program didn't show output why? It is the saved one
#include <iostream> using namespace std; int main() { /* Comment out printing of Hello world! cout << "Hello world!"; // prints Hello world! */ return 0; }
6 odpowiedzi
+ 1
I just copied it from code playground
And when I clicked run
It didn't show output
0
Remove the comments and you will get the output.
#include<iostream>
using namespace std;
int main()
{
cout <<" Hello world";
return 0;
}
0
Bt it was the chapter of comment bro
0
Then try this.....
#include<iostream>
using namespace std;
int main()
{
/* Comment out printing of Hello world */
cout <<" Hello world";//prints hello
return 0;
}
0
Anything written within (/* */) without bracket is treated as comments which means it should not be executed
For single line comment we use double slash //
For multiple lines we use /* at beginning and */ at the end