⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list0502.c

📁 里面包含很多c语言的源码
💻 C
字号:
/* Illustrates the difference between arguments and parameters. */

#include <stdio.h>

float x = 3.5, y = 65.11, z;

float half_of(float k);

int main( void )
{
    /* In this call, x is the argument to half_of(). */
    z = half_of(x);
    printf("The value of z = %f\n", z);

    /* In this call, y is the argument to half_of(). */
    z = half_of(y);
    printf("The value of z = %f\n", z);

    return 0;
}

float half_of(float k)
{
    /* k is the parameter. Each time half_of() is called, */
    /* k has the value that was passed as an argument. */

    return (k/2);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -