Home >Backend Development >C#.Net Tutorial >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!