首页 > 计算机科学与技术
题目内容 (请给出正确答案)
[单选题]

#include<stdio.h> main() {union long a; int b; char c;} m; printf(“%d\n”,sizeof(m));}以上程序的运行结果是()。

A.2

B.4

C.6

D.8

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“#include<stdio.h> main()…”相关的问题
第1题
下列程序的运行结果为____。#include “stdio.h”#define MA(x) x*(x-1)void main(){ int a=1,b=2;printf(“%d”,MA(1+a+b)); }

A.5

B.6

C.7

D.8

点击查看答案
第2题
以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) ma

以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) main() { int a=5,b=2,c=3,d=3,t; t=MAX(a+b,c+d)*10; printf("%d\n",t); }

点击查看答案
第3题
下列程序的输出结果是______。 #include"stdio.h" main() { char a[1]="0123456789&qu

下列程序的输出结果是______。

#include"stdio.h"

main()

{

char a[1]="0123456789",*p;

p=&a[4];

puts(p);

}

点击查看答案
第4题
以下程序的输出结果是______。 include<stdio.h> main() { int a=340; a=a/

以下程序的输出结果是______。 include<stdio.h> main() { int a=340; a=a/3; a=a%3; printf("%d",a); }

点击查看答案
第5题
有以下程序 include<stdio.h> main() {chara=4; printf(%dha,a=a<<1); )A.8B.16C.40D.4

有以下程序 include<stdio.h> main() {chara=4; printf(%dha,a=a<<1); )

A.8

B.16

C.40

D.4

点击查看答案
第6题
下列程序的输出结果是【 】。 include<stdio.h> main() { char b[]="Hello you";

下列程序的输出结果是【 】。 include<stdio.h> main() { char b[]="Hello you"; b[5] =0; printf("%s\n",b); }

点击查看答案
第7题
下面程序的输出结果是______。 #include"stdio.h" main() (cbar b[]="ABCD"; char

下面程序的输出结果是______。

#include"stdio.h"

main()

(cbar b[]="ABCD";

char*chp;

for(chp=b;*chp;chp+=2)

printf("%s\t",chp);

printf("\n");

}

点击查看答案
第8题
下面程序#include "stdio.h" #include "string.h" main(){char *s1="AbDeG";char *s2="AbdEg";s1+=2; s2+=2;printf"%d\n",strcmp(s1,s2));}的运行结果是()

A.正数

B. 负数

C. 零

D. 不确定的值

点击查看答案
第9题
下面程序的运行结果是()。 include<stdio.h> define_MYDEBUG void main() { ifdef

下面程序的运行结果是()。 include<stdio.h> define_MYDEBUG void main() { ifdef_MYDEBUG printf("DEBUG"); else printf("RELEASE"); endif )

A.DEBUG

B.RELEASE

C.DEBUGRELEASE

D.程序有错误

点击查看答案
第10题
以下程序的输出结果是【 】。 include <stdio.h> deftne JFT(x)x*x main() {

以下程序的输出结果是【 】。 include <stdio.h> deftne JFT(x)x*x main() { int a,k=3; a=++JFT(k+1); printf("%d",a); }

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改