int a=1,b=2; int func1(int x) {x+=a++; b++; return(x); } int c=3; int func2(int x,int y) {int a; a=x+y; b++;c++; return(a); } main() {int u=4,v=5; int s1,s2; printf("\na=%d,b=%d,c%d,u=%d,v=%d",a,b,c,u,v); h:{char c='A'; int u='a'; c+=32; printf("\nc=%c,u=%d",c,u); } printf("\nc=%d,u=%d",c,u); s1=func1(u); printf("\na=%d,b=%d,c=%d,s1=%d",a,b,c,s1); s2=func2(u,v); printf("\na=%d,b=%d,c=%d,s2=%d",a,b,c,s2); }
上面的运行结里是:
a=1,b=2,c=3,u=4,v=5
c=a,u=97
c=3,u=4
a=2,b=3,c=3,s1=5
a=2,b=4,c=4,s2=9
上面的s1=5和s2=9是怎么得来的,谢谢!