All the coding done in C language