运行下列程序后,输出结果是()
f ( int x )
{static int y=3;
return(y+++x);
}
main()
{int i;
for(i=0;i<3;i++)
printf("%d,",f(i));
}
A.3,4,5, B.3,5,7, C.4,5,6, D.4,6,8,正确答案B
运行下列程序后,输出结果是()
f ( int x )
{static int y=3;
return(y+++x);
}
main()
{int i;
for(i=0;i<3;i++)
printf("%d,",f(i));
}
A.3,4,5, B.3,5,7, C.4,5,6, D.4,6,8,正确答案B