Home >Backend Development >C#.Net Tutorial >What are the basic units of C language?
What is the basic unit of C language?
The basic unit of C language isfunction.
(Recommended learning: c language video tutorial)
All C language programs are composed of functions. Including the main function, the entry point of the program, and all other functions called by it.
A function consists of two parts: the description part of the function. Including function name, function type, function attributes, function parameter (formal parameter) name, formal parameter type.
For example:
int max(int a, int b) { return a > b ? a : b; }
PHP Chinese website, a large number of PHP tutorials and other programming learning courses, welcome to learn!
The above is the detailed content of What are the basic units of C language?. For more information, please follow other related articles on the PHP Chinese website!