📄 biggest.c
字号:
#include <stdio.h>int *biggest_of_two(int*, int*);int *biggest_of_three(int*, int*, int*);int main (){ int a = 123, b = -78, c = 999; int *one, *two; one = biggest_of_two(&a, &b); two = biggest_of_three(&a, &b, &c); printf("Biggest of %i and %i is %i\n", a, b, *one); printf("Biggest of %i, %i and %i is %i\n", a, b, c, *two); return 0;}int *biggest_of_two (int *i, int *j){ return (*i > *j) ? i : j; /* Test if what i points to is larger than what j points to. if so, return i, if not, return j */}int *biggest_of_three (int *i, int *j, int *k){ int *first = biggest_of_two(i, j); int *second = biggest_of_two(j, k); return biggest_of_two(first, second);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -