1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课内】13.指针1/6-2 利用指针找最大值.c

8 lines
128 B
C
Raw Permalink Normal View History

2024-11-29 08:02:24 +00:00
void findmax(int *px, int *py, int *pmax) {
if (*px > *py) {
*pmax = *px;
} else {
*pmax = *py;
}
}