Hello world!

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;
}

2 thoughts on “Hello world!”

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top