qfedu-c-level/day9/d2.c

16 lines
229 B
C
Raw Normal View History

2023-07-13 19:18:49 +08:00
#include <stdio.h>
int main()
{
int a = 10, b = 20;
int *p = &a, *q = &b;
a += b++;
printf("*p = %d\n", *p);
printf("*q = %d\n", *q);
*q += *p;
printf("*q = %d, *p = %d\n", *q, *p);
return 0;
}