摘要: 一、指针作为参数传递 1.为什么需要指针作为参数传递? 因为实参与形参相互独立,被调函数无法影响主调函数中的变量 #include<stdio.h> void swap(int x,int y) {int temp=x; x=y; y=temp;} int main() {int a,b; int 阅读全文
posted @ 2022-09-21 11:36 纯爱暴打ntr 阅读(461) 评论(0) 推荐(0)