单项选择题
设有定义:char p[]={’1’, ’2’, ’3’}, *q=p; ,以下不能计算出一个char型数据所占字节数的表达式是______。
A.sizeof(p)
B.sizeof(char)
C.sizeof(*q)
D.sizeof(p[0])
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面结构体的定义语句中,错误的是______。
A.struct ord { int x; int y; int z;} struct ord a;
B.struct ord { int x; int y; int z; }; struct ord a;
C.struct ord { int x; int y; int z;} a;
D.struct { int x; int y; int z;} a;
点击查看答案&解析
单项选择题
有以下程序:#include <stdio.h>main(){ char s[]= 012xy 08s34f4w2 ;int i, n=0;for(i=0; s[i]!=0; i++)if(s[i]>=’0’&&s[i]<=’9’)n++;printf( %d n , n);}程序运行后的输出结果是______。
A.0
B.3
C.7
D.8
点击查看答案&解析
相关试题
读取二进制文件的函数调用形式为:fread(b...
有以下程序:#include <stdio.h>main...
有以下程序:#include <stdio.h>#inc...
以下叙述中正确的是______。
有以下程序:#include <stdio.h>typed...