第1题
下列程序的输出结果是______。
#include"stdio.h"
main()
{
char a[1]="0123456789",*p;
p=&a[4];
puts(p);
}
第2题
下列程序的输出结果是______。
#include"stdio.h"
main()
{
char a[1]="0123456789",*p;
p=&a[4];
puts(p);
}
第3题
下列程序的输出结果是()。 #include<stdio.h> main { struct st { int y,x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un)) }
A.6,2
B.6,4
C.8,4
D.8,6
第4题
下列程序的输出结果是()。
#include<stdio.h>
main
{ struct st
{ int y,x,z;
};
union
{ long i;
int j;
char k;
}un;
printf("%d,%d\n",sizeof(struct st),sizeof(un))
}
A.6,2
B.6,4
C.8,4
D.8,6
第6题
下列程序的输出结果是()。#include<stdio.h>main(){ struct st { int y, x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un));}
A.6,2
B.6,4
C.8,4
D.8,6
第7题
下列程序的输出结果是()。 #include "stdio.h" main() { struct st { int y,x,z;}; union {long i;int j; char k;} un; printf("%d,%d\n",sizeo(struct st),sizeof(un)); }
A.6,2
B.6,4
C.8,4
D.8,6
第8题
下列程序段的输出结果是______。
#include"stdio.h"
main()
{ char b[]="Hello,you";
b[5]=0;
printf("%s\n",b);
}
第9题
以下程序的输出结果是【 14 】
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{ char *p,*q,*r,
p=q=r=(char*)malioc(sizeof(char)*20);
strcpy(p,"attaboy,welcome!");
printf(”%c%c%c\n”,p[ 11 ], q[ 3 ],r[ 4 ]);
free(p);
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!