首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序: main() { unsigped int a; int b=-1; a=b; printf("% u", a); } 程序运行后的输出结果是______。
有以下程序: main() { unsigped int a; int b=-1; a=b; printf("% u", a); } 程序运行后的输出结果是______。
admin
2013-02-23
22
问题
有以下程序: main() { unsigped int a; int b=-1; a=b; printf("% u", a); } 程序运行后的输出结果是______。
选项
A、-1
B、65535
C、32767
D、-32768
答案
B
解析
int型数据-1与unsigned int型数据65535在内存中的存储内容相同。
转载请注明原文地址:https://kaotiyun.com/show/CLJp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下程序的运行结果为【】。main(){staticintnumber[6]={1,2,3,4,5,6};intm=4,j;move(number,6,m);for(j=0;i<5;j++)
下列程序的输出结果是______。structst{intx;int*y;}*p;intdt[4]={10,20,30,40};structstaa[4]={50,&dt[0],60,&dt[0],60,&dr[0],60,
下列程序的输出结果是______。main(){inta=-1,b=1,k;if((++a<0)&&!(b--<=0))printf("%d%d\n",a,b);elseprintf("%d%d\n",b,a)
下列程序段执行后,c3中的值是______。intc1=1,c2=2,c3;c3=1.0/c2*c1;
下面程序是把从终端读入的20个字符作为字符串放在字符数组中,然后利用指针变量输出上述字符串,请填空。#include<stdio.h>main(){inti;chars[21],*p;for(i=0;i<20;
函数mystrlen(char*s)的功能是求字符串s的长度,请填空。mystrlen(char*s){char*t:t=s;while(【】)t++;return(t-s);
以下函数返回a所指数组中最小的值所在的下标值:fun(int*a,intn){inti,j=0,p;p=j;for(i=j;i<n;i++)If(a[i]<a[p])____
下面程序的输出结果是()main(){inti,j;i=16;j=(i++)+i;printf("%d",j);i=15;printf("%d%d",++i,i);}
以下各选项企图说明一种新的类型名,其中正确的是()
软件开发过程中所使用的资源一般包括:【】、软件资源和硬件资源。
随机试题
ItiscommonlybelievedthatthegreatEnglishdramatistandpoetWilliamShakespearewasborninStratford-on-AvononApril23,
汉地佛教的四大菩萨指的是()。
妊娠合并心脏病早期心衰的表现是
肾性贫血微血管病性贫血
根据《中华人民共和国野生动物保护法》对野生动物保护的有关规定,下列说法正确的是()。
关于累进税率,下列说法中错误的是()。
Practicallyallspeciesofanimalscommunicateeitherthroughsoundsorthroughalargerepertoryofsoundlesscodes.
AstudybyscientistsinFinlandhasfoundthatmobilephoneradiationcancausechangesinhumancellsthatmightaffectthebr
Walkingistheexerciseofchoiceformostdieters.Nowonder.Youdon’tneedagymmembership.Youcandoitvirtuallyeverywhe
ArecentBBCdocumentary,"TheTownThatNeverRetired",soughttoshowtheeffectsofincreasingthestatepensionagebyputti
最新回复
(
0
)