请读程序:#include"stdio.h"f(int b[],int n){ int i,r;r=1;for(i=0;i<=n;i++)r=r*b[i];return r;}void main(){ int x,a[]={2,3,4,5,6,7,8,9};x=f(a,3);printf("%d\n",x);}上面程序输出结果是( )
查看答案
下列程序执行后的输出结果是void func1(int i);void func2(int i);char st[]="hello,friend!";void func1(int i){ printf("%c",st[i]);if(i<3){i+=2;func2(i);}}void func2(int i){ printf("%c",st[i]);if(i<3){i+=2;func1(i);}}void main(){int i=0;func1(i);}
A. hello
B. hel
C. hlo
D. hlm
当标识符在该条件编译结构前(),程序段被编译。否则,程序段不被编译。
模块化程序设计控制不了程序设计的复杂性。
A. 对
B. 错
模块化程序设计避免程序开发的重复劳动。
A. 对
B. 错