qfedu-c-level/day10/homework/h11_2.c

17 lines
238 B
C
Raw Normal View History

2023-07-15 17:55:35 +08:00
#include <stdio.h>
void fun(char *c, int *d)
{
*c = *c + 1;
*d = *d + 1;
printf("fun ---> %c, %c\n", *c, *d);
}
int main()
{
char a = 'A', b = 'a';
fun(&b, &a);
printf("main --> %c, %c\n", a, b);
return 0;
}