first program in c language
Home » C Programming » First Program In C Language

First Program In C Language

Program In C Language :

In the first practical program of this course we have only use simple header and main function and a print function to print something on the screen.below is the code you can see and copy to try it by your own in any C language IDE/editor.


Output : hello world of c.


Explanation of How above program works..

  1. Every program start from main() function.
  2. printf() is a library function to display output which only works if #include<stdio.h>is included at the beginning.
  3. In, stdio.h is a header file (standard input output header file) and #include is command to paste the code from the header file when necessary.When compiler encounters printf() function and doesn’t find stdio.h header file, compiler shows error.
  4. Code return 0; indicates the end of program. You can ignore this statement but, it is good programming practice to use return 0;

PREVIOUS : Data Types In C Language

NEXT : C Language Variables Example Program


A Freelancer web developer, graphic designer and own this blog to spread knowledge.My hobby is computer problem's solving and i love to help other in this field.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.