include<stdio.h>
define S(X) X*X
void main
{ int a=9,k=3,m=2;
a/=S(k+m)/S(k+m):
printf("%d",a);
}
A.1
B.4
C.9
D.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 PT 5.5define S(x)PT*x*Xmain{ int a=1,b=2:printf("%4.1f\n",s(a+b));}A.49.5B.9.5C.22.0D.45.0
[单选题]下述程序执行的输出结果是( )。include<stdio.h>main( ){char a[2][4];strcpy(a。"are");strcpy(a[1],"you");a[o][3]=&;printf("%s\n",a);}A.are&youB.youC.areD.&
[单选题]以下程序输出的结果是#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
[单选题]下面程序的输出结果是#include<stdio.h>#include<string.h>main(){ char *p1="abc",*p2="ABC",str[50]= "xyz";strcpy(str+2,strcat(p1,p2));printf("%s/n",str);}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
[单选题]下面程序的输出结果是()。#include<stdio.h>main(){ int a[4][5]={1,2,4,-4,5,-9,3,6,-3,2,7,8,4};int i,j,n;n=9;i=n/5;j=n-i*5-1;printf("a[%d][%d]=%d/n",i,j,a[i][j]); } 执行后输出结果是( )。A)a[1][3]=6 B)a[1][3]=-3C)a[1][3]=2 D)不确定
[主观题]以下程序的输出结果是_[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);}
[试题]以下程序的输出结果是_[19]_______#include <stdio.h>#define M 5#define N M+Mmain(){ int k;k=N*N*5; printf("%d/n",k);}
[单选题]以下程序运行后的输出结果是( )。#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.& * * & # &*