A

Admin • 833K Points
Coach

Q. What is the name of the main function of a C program?

  • (A) principal
  • (B) main
  • (C) any name
  • (D) begin
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

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;
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.