Computer Science, asked by rallanamika04, 2 months ago

Give the basic structure of C Program?
(for 6 marks )​

Answers

Answered by issacjosy
13

Answer:

1. Document section

2. Preprocessor/link Section

3. Definition section

4. Global declaration section

5. Function declaration section

6. Main function

7. User-defined function section

Explanation:

1. 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 displyed on the output screen.

2. Preprocessor directives Section

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

3. Definition section

This section involves the variable definition and declaration in C.

4. 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.

5. Function prototype declaration section

This section gives the information about a function that includes, the data type or the return type, the parameters passed or the arguments.

6. Main function

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

7. User-defined function section

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

Answered by yandapallydurgareddy
0

the structure of C++ program is divided into four different sections

Attachments:
Similar questions