正在学习C语言,发现指针总是搞不懂,云里雾里。经过思考,大致了解了,与各位小白一同分享,欢迎大神指正。) 正确写法: #include <stdio.h> void swap(int *p1,int *p2) { int t; t = *p1; /*用取地址内容符,赋予t的是指针中的内容,也就是a的值*/ *p1 = *p2; *p2 = t; } void main() { int a, b