#include <stdio.h> //指针变量的值变化,则对应新的变量,原变量的值不变 main() { int m=1,n=2; int *p=&m,*q=&n,*r; r=p;p=q;q=r; printf("%d,%d,%d,%d",m,n,*p,*q); getchar(); }
标签:变量,int,不变,C语言,对应,指针 From: https://www.cnblogs.com/xkdn/p/16708731.html
#include <stdio.h> //指针变量的值变化,则对应新的变量,原变量的值不变 main() { int m=1,n=2; int *p=&m,*q=&n,*r; r=p;p=q;q=r; printf("%d,%d,%d,%d",m,n,*p,*q); getchar(); }
标签:变量,int,不变,C语言,对应,指针 From: https://www.cnblogs.com/xkdn/p/16708731.html