C is a general purpose programming language written by Dennis M. Ritchie and Brian W. Kernighan. Many ideas of C are from programming language were influenced from B written by Ken Thompson in 1970 for UNIX system on DEC PDP-7 which was influenced from BCPL, developed by Martin Richards.
C is a relatively low level language and according to me this is the factor that makes is most powerful programming language present today. Using C we can directly interact to hardware also, so you have both external and internal details of system. So it's on you to which extent you can use it for you. Let's see a simple program in C:
#include
int main()
{
printf("Hello, World!!\n");
}
This program prints this message on standard output using a function printf() of standard input/output library.
Every program in C starts running with the function main(), starts following the instructions in main. Being a procedural language it executes code line by line. Next is the body of function starting with '{' and closing with '}'.
Every function performs a task in the program like printf() is printing a message so every function is followed by () which contains argument to be provided to functions these arguments provide the data to the function on which the function has to work on. So, we'll proceed with printf() function in next post.
