首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序: #include<stdio.h> main() { char*p1=0: int*p2=0: float*p3=0: printf("%d%d%d\n",sizeof(
有以下程序: #include<stdio.h> main() { char*p1=0: int*p2=0: float*p3=0: printf("%d%d%d\n",sizeof(
admin
2019-02-02
62
问题
有以下程序:
#include<stdio.h>
main()
{
char*p1=0:
int*p2=0:
float*p3=0:
printf("%d%d%d\n",sizeof(p1),sizeof(p2),sizeof(p3));
}
程序运行后的输出结果是( )。
选项
A、4 4 4
B、1 4 8
C、1 2 4
D、1 1 4
答案
A
解析
注意sizeof是一个运算符,它是运算数据所占单元数量,故答案为4。
转载请注明原文地址:https://kaotiyun.com/show/wERp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
数据管理技术发展过程经过人工管理、文件系统和数据库系统三个阶段,其中数据独立性最高的阶段是______。
设有以下定义和语句 char str[20]="Program",*p; p=str; 则以下叙述中正确的是______。
有以下程序main(){intm[][3]={1,4,7,2,5,8,3,6,9};inti,j,k=2;for(i=0;i<3;i++){printf("%d",m[k][i]);}}
若有定义intm=5,y=2,则执行表达式y+=y-=m*=y后,y的值为【】。
设变量已正确定义并赋值,以下正确的表达式是
下面不属于软件工程的三个要素的是______。
若有如下程序:floatsub(inta,intb){return(a*b);}main(){inti=1,j=2,k=3;printf("%4.0f\n",sub((int)sub(k+j,j),
下列特征中不是面向对象方法的主要特征的是()。
随机试题
WhenIcaughthim______Istoppedbuyingthingsthereandstarteddealingwithanothershop.
胎头衔接是指胎头颅骨最低点接近或达到坐骨棘水平,而进入骨盆入口的是()
关于乙肝病毒核心抗体IgM临床意义叙述不正确的是
关于强心苷负性频率作用的描述,下列哪一项是正确的
苯巴比妥与双香豆素合用可产生维生素K与双香豆素合用可产生
在海关登记注册的上海A进出口公司从深圳文锦渡口岸进口货物时,其可以采用的报关方式是:
在生产者均衡点上,()。
Seventeenth-centuryphilosopherJohnLockestatedthatasmuchas99percentofthevalueofanyusefulproductcanbeattribute
It’sdisturbingtopictureyourkindergartnerinacasino,butmaybeyououghttotry.Americankidsarebornintoaculturetha
ThewholeworldputattentiontotheSouthAsiawherethetsunamihappened.Before,musiciansproduceda"sonictsunami",WallS
最新回复
(
0
)