重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 计算机科学与技术
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[单选题]

#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

答案
查看答案
更多“#include<stdio.h> main() {union long a; int b; char c;} m; printf(“%d\n”,sizeof(m));}以上程序的运行结果…”相关的问题

第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); }

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝