hello world program in c language

Hello World in C language

This demonstration uses a program named hello.c, which does nothing more than display the words Hello, World! on-screen. This program, a traditional introduction to C programming, is a good one for you to learn. The source code for hello.c is in Listing 1.1. When you type in this listing, you won’t include the line numbers on the left or the colons.

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

Output

Hello World

Variant Hello World in C language

1) Write and run this code in codeblock IDE –

#include<stdio.h>
int main ()
{
   printf("Hello ");
   printf("World!");
   printf("\n");
}

Output

Hello World!

Why is C called C?

Because C comes after BThe reason why the language was named “C” by its creator was that it came after B language. Back then, Bell Labs already had a programming language called “B” at their disposal. … The Unix operating system was originally created at Bell Labs by Ken Thompson, Dennis Ritchie, and others.

Who is the father of programming language?

Dennis MacAlistair RitchieDennis MacAlistair Ritchie (September 9, 1941 – c. October 12, 2011) was an American computer scientist. He created the C programming language and, with long-time colleague Ken Thompson, the Unix operating system and B programming language.