main is a function through which program execution begins.Every C program must have a main function. Operating system calls main to begin execution.