Home / Questions / What are all the sections that a C program may have and must have?
Explanatory Question

What are all the sections that a C program may have and must have?

👁 1,110 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

There are many sections in a C program structure. They are,

  • Documentation section
  • Link Section
  • Definition Section
  • Global declaration section
  • Function prototype declaration section
  • Main function
  • User defined function section

main() function section is the important section in a C program as program execution starts from main() function only in C language. A C program may not have all other sections except main() function.