#include "stdio.h" main() { int a,b=1,c=0; for(a=1;a<5;a++) { c=c+a; } printf("%d",c); return ; printf("hello word"); }
输出结果是10并没有hello word;return将不会执行下面的语句。
#include "stdio.h" main() { int a,b=1,c=0; for(a=1;a<5;a++) { c=c+a; } printf("%d",c); return ; printf("hello word"); }
输出结果是10并没有hello word;return将不会执行下面的语句。