Here it is a simple Hello, World source code in C and C++ languages:
C Version:
#include<stdio.h>
main()
{
printf(“Hello, World!\n”);
}
C++ Version:
#include<iostream>
using namespace std;
main() // This is a comment( using double slash ” //” make the code disable after that. Note that if main() function is not declared with return type, as void, int or char, the compiler will automatically assume as int.
{
cout << “Hello, World!” << endl;
}
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.
2s2Ey5MqA7rJhTSx7nVuSz5XpAc