Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - 十万火急,,,急求懂C语言程序设计的好心人帮做试题答案!!!
十万火急,,,急求懂C语言程序设计的好心人帮做试题答案!!!
选择题:1、d

3、c

4、d

8、d

9、a

1、d1、2。c文件3、43 5、y = y+1;7、15、8、数组

9、连接1、25

11 、( char *)P;12、 13、r = malloc(sizeof(struct Worker));

编程题:

1 、

# include & ltstdio.h & gtint main()

{

int I = ;

for(I = ;我& lt= 5;i++)

{

if((I % 3)= = | |(I % 5)= = )

{

printf(" % d ",I);}

}

printf(" \ n ");

返回;}

2 、

# include & ltstdio.h & gtint FF(int a[],int n)

{

static int result = 1;

如果(n & gt)

{

result * = a[n-1];

FF(a,-n);}

返回结果;}

int main()

{

int a[1];

int I = ;

for(I = 1;我& lt= 1 ;i++)

{

a[I-1]= I;}

printf("%d\n ",FF(a,1));

返回;}

没有1%对,可以说有98%对,两道编程题都测试通过,有问题可以你好我哈:)