4-4
Jimxcxc
这个作者很懒,什么都没留下…
展开
-
编程63333
#include <stdio.h> /* 函数声明 */int max(int num1, int num2); int main (){ /* 局部变量定义 */ int a = 1000; int b = 50; int ret; /* 调用函数来获取最大值 */ ret = max(a, b); printf( "Max value is : %d\n", ret ); return 0;} /* 函数返回两个原创 2022-03-24 16:44:19 · 143 阅读 · 0 评论 -
#define 预处理器定义常量的形式
**#define 预处理器**#include <stdio.h>#define LENGTH 10#define WIDTH 5#define NEWLINE ’ \n’int main(){int area;area = LENGTH * WIDTH;printf(“value o...原创 2020-06-10 10:46:51 · 338 阅读 · 0 评论