What is the basic unit of C language source program?

Release: 2020-05-12 17:10:18
Original
31343 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!