Home >Backend Development >C#.Net Tutorial >What is the basic unit of C language source program?

What is the basic unit of C language source program?

尚
Original
2020-04-27 15:00:1231450browse

What is the basic unit of C language source program?

#The basic unit of C language source program is a function.

C programs are composed of functions. A C source program contains at least one main function, and can also contain a main function and several other functions. Therefore, a function is the basic unit of a C program.

A function is a group of statements that perform a task together. Every C program has at least one function, the main function main(), and all simple programs can define other additional functions.

You can divide the code into different functions. How you divide your code into different functions is up to you, but logically the division is usually based on each function performing a specific task.

The above is the detailed content of What is the basic unit of C language source program?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn