Q. What is the name of the main function of a C program?
β
Correct Answer: (B)
main
Explanation: 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;
}
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}