使用传地址的形式改变形参的值并输出,通常用指针和数组来实现
用传出参数,int total = 0;void add(int *total, int a, int b){ *total = a + b;}调用:add(&total, 5, 6);