zoukankan      html  css  js  c++  java
  • C连载5-函数与return拾贝

    一、return语句

    1.main函数有return语句,但是也可以没有,对于main函数,运行完最后一行语句,就会自动自动返回一个0,但是其他函数是不可以的,为了养成好习惯,请在main函数末尾添加return 0;

    2.return语句是一种跳转语句。

    3.举例

    #include <stdio.h>
    
    void builder(void);
    
    int main(void){
    
        printf("I will summon the buttler function.
    ");
    
        buttler();
    
        printf("haoba");
    
       
    
        return 0;
    
    }
    
    void buffer(void){
    
        printf("buffer function");
    
    }

    第一次出现builder函数,我们称之为函数原型,函数原型是一种声明形式,告知编译器正在使用某个函数,因此函数原型也被称为函数声明。

    今天有点少,可能是会的比较多吧,看到的不会的比较少​!!!!!!!!​

    二、源码:

    D5_firstProgramme.c

    https://github.com/ruigege66/CPrimerPlus/blob/master/D5_firstProgramme.c

    2.CSDN:https://blog.csdn.net/weixin_44630050

    3.博客园:https://www.cnblogs.com/ruigege0000/

    4.欢迎关注微信公众号:傅里叶变换,个人账号,仅用于技术交流,后台回复“礼包”获取Java大数据学习视频礼包

  • 相关阅读:
    luogu 1593
    luogu 1369
    hdu 1796
    bzoj 3398
    luogu 4587
    luogu 2152
    bzoj 3629
    bzoj 1507: [NOI2003]Editor
    bzoj 1503: [NOI2004]郁闷的出纳员
    bzoj 1497: [NOI2006]最大获利
  • 原文地址:https://www.cnblogs.com/ruigege0000/p/13041049.html
Copyright © 2011-2022 走看看