c试题-以下程序的正确运行结果是
#include <stdio.h> int f(int a); int main(void) { int a = 2, i; for( i = 0; i < 3; i++ ) printf("%4d",f(a)); } int f(int a) { int b = 0; static int c = 3; b++; c++; return(a+b+c); }
#include <stdio.h> int f(int a); int main(void) { int a = 2, i; for( i = 0; i < 3; i++ ) printf("%4d",f(a)); } int f(int a) { int b = 0; static int c = 3; b++; c++; return(a+b+c); }
网友评论0