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

  • (A) principal
  • (B) main
  • (C) any name
  • (D) begin
πŸ’¬ Discuss
βœ… 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;
}
Explanation by: Rudra Pratap Singh
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;
}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rudra Pratap Singh
Publisher
πŸ“ˆ
90%
Success Rate