更多"以下程序的输出是 【8】 。 main( ) char str1["的相关试题:
[填空题]以下程序的输出是 【7】 。
main( )
char str1[]=How do you do",*p=strl;
strcpy(str1+strlen(str1)/2"es she");
pfinff("%s/n",p1);
[填空题]以下程序的输出是______。
main( )
char str1[]=How do you do",*p=strl;
strcpy(str1+strlen(str1)/2"es she");
pfinff("%s/n",p1);
[填空题]以下程序的输出是 【7】 。
main( )
char str1[]="How do you do",*pl=str1;
strcpy(str1+strlen(str1)/2,"es she");
intf("%s/n",p1);
[填空题]以下程序的输出是 【8】 。
main( )
{
char str1[]="How do you do",*p1=str1;
strcpy(str1+strlen(str1)/2,"es she");
printf("%s/n",p1);
}
[填空题]下程序的输出是 【8】 。
main( )
char str1[]="How do you do",*p1=str1;
strcpy(str1+strlen(str1)/2,"es she");
printf("%s/n",p1);
[填空题]以下程序的输出是 【7】 。
main( )
{
char str1[]=How do you do",*p=strl;
strcpy(str1+strlen(str1)/2"es she");
pfinff("%s/n",p1);
}
[单项选择]以下程序输出的结果为______。
main( )
char*alpha[6]="ABCD","EFGH","IJKL","MNOP","QRST","UVWX";
char**p;
int i;
p=alpha;
for(i=0,i<4;i++)
prntf("%s",p[i]);
A. ABCDEFGHIJKL
B. ABCD
C. ABCDEFGHIJKLMNOP
D. AEIM
[单项选择]以下程序的输出结果是( )。
main( )
char*s="12134211";
int v[4]=0,0,0,0),k,i;
for(k=0;s[k];k++)
switch(s[k])
case’1’:i=0;
case’2’:i=1;
case’3’:i=2;
case’4’:i=3;
v[i]++:
for(k=0;k<4;k++)printf("%d",v[k]);
A. 4 2 1 1
B. 0 0 0 8
C. 4 6 7 8
D. 8 8 8 8
[填空题]以下程序运行后的输出结果是【 】。
main( )
{char c; int n=100;
float f=10; double x;
x=f*=n/=(c=50);
printf("%d %f/n",n,x);
}
[填空题]以下程序运行后的输出结果是 。
# include<string.h>
main( )
char ch[]="abc",x[3][4];int i
for(i=0;i<3;i++) strcpy(x[i],ch);
for(i=0;i<3;i++)printf("%s",&x[i][i]);
printf("//n");
[填空题]以下程序的输出结果是______。
#include
main( )
char *ch[4]=("red ","green","blue");
int i=0;
while(ch[i])
putchar(ch[i][0]);i++;
[填空题]以下程序的输出结果是 【6】 。
main( )
{ char c=’z’;
printf("%c",c-25);}
[填空题]以下程序运行后的输出结果是【 】。
main( )
{ char m;
m=’’B’’+32; printf("%c/n",m);
}
[单项选择]以下程序段的输出结果是()。
#include<stdio.h>
main( )
char p[][4]="ABC","DEF","GHI";
int i;
for(i=0;i<3;i++)
puts(p[i]);
A. A B C
B. A D G
C. A B C
D. A B C
[填空题]下列程序的输出结果是 【8】 。
main( )
char b[]="Hello you";
b[5]=0;
printf("%s/n",b);
[填空题]以下程序的输出结果是______。
main( )
char s[]="abcdef";
s[3]=’/0’;
printf("%s/n",s);