(34 )有以下程序#include lt;stdio.hgt;int fun (){ static int x=1;x*2; return x;}main (){

计算机 程序, 已帮助 人

(34 )有以下程序

#include <stdio.h>

int fun ()

{ static int x=1;

x*2; return x;

}

main ()

{ int i,s=1 ,

for (i=1;i<=2;i++ ) s=fun () ;

printf (" %d \ n " ,s ) ;

}

程序运行后的输出结果是

A ) O

B ) 1

C ) 4

D ) 8

请帮忙给出正确答案和分析,谢谢!

热搜:以下哪个程序是正确的病史采集的程序