标题:为什么结果不是8而是9
取消只看楼主
liufan36
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2014-3-16
 问题点数:0 回复次数:0 
为什么结果不是8而是9
#include<stdio.h>
    int f(int n);
    main()
  { int a=3,s;   
    s=f(a);s=s+f(a);printf("%d\n",s);  }
    int f(int n)  
    { static int a=1;    n+=a++;    return n;  }
搜索更多相关主题的帖子: include return 
2014-03-17 07:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-428624-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015893 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved