The name of the main function of a C program is ‘main()’. The main function is the most important function in C programs: it is mandatory in all programs. The execution of a program automatically calls the main function. Example:
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
Discusssion
Login to discuss.