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

18 lines
290 B
C
Raw Normal View History

2023-07-15 17:55:35 +08:00
#include <stdio.h>
void fun(char *c, int d)
{
printf("%d\n", *c); // 97
c = c + 1;
printf("%d\n", *c); // 65
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;
}