Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Basics of C Programming
  5. Structure of C Program

Structure of C Program

Structure of C Program

Documentation Section

It is the section in which you can give comments to make the program more interactive. The compiler won’t compile this and hence this portion would not be displayed on the output screen.

Preprocessor directives Section / Link Section

This section involves the use of header files that are to included necessarily program.

Definition section

This section involves the variable definition and declaration in C.

Global declaration Section

This section is used to define the global variables to be used in the programs, that means you can use these variables throughout the program. Also gives the information about a function that includes, the data type or the return type, the parameters passed or the arguments.

Main function

It is the major section from where the execution of the program begins. The main section involves the declaration and executable section.

User-defined function section

When you want to define your function that fulfils a particular requirement, you can define them in this section.

Views: 0

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments