Introduction to C Programming

C is a general-purpose high-level programming language used to develop portable applications and firmware. It is originally designed to develop system software and operating systems. C was developed by Dennis Ritchie at Bell Labs in the 1970s.

The first main application of C was UNIX Operating System. The main features of C include low-level access to memory, a simple set of keywords, and a clean style. Because of these features, C language is a suitable language for operating system development. Many languages ​​developed after C follow the only syntax of C language like PHP, Java, JavaScript, etc.

C some features of programming

  • C has a certain number of keywords. Including a set of control primitives such as if, for, while, switch, etc.
  • C consists of many logical and mathematical operators including bit manipulators.
  • Return values ​​of functions in C are not always required. They can also be ignored if not needed.
  •  Several assignments can also apply in a single statement.

A sample program in C–

#include <stdio.h>

void main()




Output- Hello World!

Now we try to know what is the meaning of whatever lines we have written in the above program and it is very important to know some things before knowing the meaning.

  • The computer still performs processing based on binary language.
  • To run any program on the computer, we have to give all the commands to the operating system.
  • The operating system completes our task by coordinating with the hardware based on the orders given by us.
  • The compiler of C and C Plus Plus is based on 2 Pass Compiler, that is, your program will be compiled twice, once the header file in it and then the rest of the program.

Now we will try to understand what is the meaning of each line written in the program.


# In the above line means pre-processor, this means that the compiler will first process the pre-processor command before processing any command. Here in this line too. h is a header file, in which the definition of the function to be used in the program is written.

void main()

This is a function, whenever we execute any program, the operating system always looks for the main function in the code of that program, and then the program starts executing. So no matter what program you create in any programming language, the main function will be there in all of them.


This is a function through which we can display a message on the screen of a computer. In this print function, we have sent an argument which is a message.


I am an engineer by profession but being a blogger is my old day's dream to create my site for those who are more curious about my birthplace than I am coming from (India). the current city lives in Navi Mumbai, India

Post a Comment


Previous Post Next Post

نموذج الاتصال