Bird
0
0

Which part of a C program is mandatory to start the execution of the program?

easy📝 Conceptual Q11 of 15
C - Basics and Execution Environment
Which part of a C program is mandatory to start the execution of the program?
AThe <code>return</code> statement
BThe <code>printf()</code> statement
CThe <code>#include</code> directive
DThe <code>main()</code> function
Step-by-Step Solution
Solution:
  1. Step 1: Understand program entry point

    In C, the program always starts executing from the main() function.
  2. Step 2: Identify mandatory part for execution

    Without main(), the program has no defined starting point.
  3. Final Answer:

    The main() function -> Option D
  4. Quick Check:

    Program starts at main() [OK]
Quick Trick: Look for the function where execution begins [OK]
Common Mistakes:
  • Thinking printf() starts the program
  • Confusing #include with execution start
  • Assuming return starts the program

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes