include<stdio.h>
define PT 5.5
define S(x)PT*x*X
main
{ int a=1,b=2:
printf("%4.1f\n",s(a+b));
}
A.49.5
B.9.5
C.22.0
D.45.0
[单选题]执行下列程序后,输出的结果是( )。include<stdio.h>define S(X) X*Xvoid main{ int a=9,k=3,m=2;a/=S(k+m)/S(k+m):printf("%d",a);}A.1B.4C.9D.0
[单选题]执行下述程序后,输出的结果是( )。include<stdio.h>define S(X)X*Xvoid main{ int a=9,k=3,m=2;a/=S(k+m)/s(k+m);printf("%d",a);}A.1B.4C.9D.0
[单选题]以下程序运行后的输出结果是( )。#include<stdio.h>main(){ int i;for (i=1;i<=5;i++)switch(i%5) {case 0:printf("*");break; case 1:printf("#");break; default:printf("/n"); case 2:printf("&"); }}A.&# B.#& C.#& D.& * * & # &*
[主观题]以下程序运行后的输出结果是(7)。include<stdio.h>main(){ int a=37;a%=9;printf("%d\n",a);}
[单选题]以下程序运行后的输出结果是(10)。include<stdio.h>main(){ char a;for(a=0;a<15;a+=5){putchar(a+'A');}printf("\n");}
[主观题]以下程序运行后的输出结果是(13)。include<stdio.h>main(){ int n[2],i,j;for(i=0;i<2;i++)n[i]=0;for(i=0;i<2;i++)for(j=0;j<2;j++)n[j]=n[i]+1;printf("%d\n",n[1]);}
[主观题]以下程序运行后的输出结果是(9)。include<stdio.h>main(){ int i,n[]={0,0,0,0,0};for(i=1;i<=2;i++){ n[i]=n[i-1]*3+1;printf("%d",n[i]);}printf("\n");}
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[主观题]以下程序的输出结果是_[13]_______#include <stdio.h>#include <string.h>char *fun(char *t){ char *p=t;return(p+strlen(t)/2);}main(){ char *str="abcdefgh";str=fun(str);puts(str);}