Question:

Any C program

Show Hint

The mandatory function in every C program is the main() function, which serves as the execution starting point.
  • must contain at least one function
  • need not contain any function
  • needs input data
  • must contain at least two functions
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Understanding the Concept:
The structure of a C program relies on modular blocks of code called functions.

Step 2: Detailed Explanation:

Every standard C program execution starts with a specific entrance point called the main() function.
Without the main() function, the compiler cannot determine where to start execution, and the linker will throw an error.
Even a basic C program requires this single function to run.
Other user-defined or library functions are optional.
Therefore, any C program must contain at least one function.

Step 3: Final Answer

The correct option is (A).
Was this answer helpful?
0
0