C serial 5-functions and return


1、 Return statement

1. The main function has a return statement, but it can not. For the main function, after running the last line of statement, it will automatically return a 0, but other functions are not allowed. In order to form a good habit, please add return 0 at the end of the main function;

2. The return statement is a jump statement.

3. Examples


void builder(void);

int main(void){

    printf("I will summon the buttler function.\n");




    return 0;


void buffer(void){

    printf("buffer function");



The first time builder functions appear, we call them function prototypes. Function prototypes are a form of declaration that tells the compiler that a function is being used. Therefore, function prototypes are also called function declarations.


Today is a little less, may be more will, see less will not!!!!!!!! ​

2、 Source code:




3. Blog Garden: https://www.cnblogs.com/ruigege0000/

4. welcome to WeChat official account: Fourier transform, personal account, only for technology exchange, backstage reply “gift package” to get Java big data learning video package.


Recommended Today

Java security framework

The article is mainly divided into three parts1. The architecture and core components of spring security are as follows: (1) authentication; (2) authority interception; (3) database management; (4) authority caching; (5) custom decision making; and;2. To build and use the environment, the current popular spring boot is used to build the environment, and the actual […]