博客园 :: :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::
#include <stdio.h>
/*指针传递。
指针传递会改变实参的值。
*/
void func(int *n)
{
    *n = 1034;
}
int main()
{
    int a =90;
    func(&a);
    printf("%d\n",a);
    return 0;
}

 

posted on 2016-05-03 14:28  #include<stdio.h>  阅读(188)  评论(0编辑  收藏  举报