Anders Tornblad

All about the code

Label archive for hello world

"Hello, World!" in C++

How to do "Hello, World!" in C++.

#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; }

About ten years after the birth of the C language, object oriented paradigms were added to form the C++ language. The latest version of the C++ standard is often called C++14.

For more "Hello, World!" examples, go to the Hello World category.

"Hello, World!" in C

How to do "Hello, World!" in C.

#include <stdio.h> int main() { puts("Hello, World!"); return 0; }

The C language is father and grandfather of a whole range of modern languages, like C++, PHP, C#, Java, Objective C, Swift, JavaScript and others. Development of the language is continuing, and the latest version, from December of 2011, is usually called C11. C is still in heavy use, mostly for embedded systems, realtime applications and operating systems on small devices.

For more "Hello, World!" examples, go to the Hello World category.