关于static a=c++,b++;是啥意思啊#includeint f(int a){int b=0;static int c=3;a=c++,b++;return a;}void main(){int a=2,i,k;for(i=0;i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 01:21:40
关于statica=c++,b++;是啥意思啊#includeintf(inta){intb=0;staticintc=3;a=c++,b++;returna;}voidmain(){inta=2,i
关于static a=c++,b++;是啥意思啊#includeint f(int a){int b=0;static int c=3;a=c++,b++;return a;}void main(){int a=2,i,k;for(i=0;i
关于static a=c++,b++;是啥意思啊
#include
int f(int a)
{
int b=0;
static int c=3;
a=c++,b++;
return a;
}
void main()
{
int a=2,i,k;
for(i=0;i
关于static a=c++,b++;是啥意思啊#includeint f(int a){int b=0;static int c=3;a=c++,b++;return a;}void main(){int a=2,i,k;for(i=0;i
上面函数相当于下面的:
int f(int a)
{
int b=0;
static int c=3;
a=c;
c = c+ 1;
b = b + 1;
return a;
}
void main()
{
int a=2,i,k;
for(i=0;i