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() // In C/C++, double slashes (//) denote a comment, causing the compiler to ignore the rest of the line. If a return type is omitted from the main() function, the compiler assumes a default return type of 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