以下函数的类型是 ()。
fff(float x)
{ printf (“%d\n”,x*x);}
A. 与参数X的类型相同
B. void型
C. int型
D. 无法确定
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346507.html
点击查看答案
若有定义:int b[5];则以下对b 数组元素的正确引用是()。
A. *b[5]
B. b+2
C. *(*(b+2))
D. *(b+2)
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-50f0-c089-2897e034651a.html
点击查看答案
变量a中的数据用二进制表示的形式是01011101,变量b中的数据用二进制表示的形式是11110000。若要求将a的高4位取反,低4位不变,所要执行的运算是( )。
A. a^b
B. a|b
C. a&b
D. a<<4
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-54d8-c089-2897e034650c.html
点击查看答案
若int类型占两个字节,则以下语句输出为()。
int k=-1;
printf("%d,%u\n",k,k);
A. -1,-1
B. -1,65536
C. -1,32768
D. -1,65535
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346516.html
点击查看答案
有以下程序
#include
void main()
{ int s;
scanf("%d",&s);
while(s>0)
{ switch(s)
{ case 1:printf("%d",s+5);
case 2:printf("%d",s+4); break;
case 3:printf("%d",s+3);
default:printf("%d",s+1);break;
}
scanf("%d",&s);
}
}
运行时,若输入1 2 3 4 5 0<回车>,则输出结果是( )。
A. 6566456
B. 66656
C. 66666
D. 6666656
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6860-c089-2897e034650b.html
点击查看答案
有以下程序
main()
{int i,s=0,t[]={l,2,3,4,5,6,7,8,9};
for(i=0;i<9;i+=2)s+=*(t+i);
printf("%d\n",s);
}
程序执行后的输出结果是()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-58c0-c089-2897e0346514.html
点击查看答案
设有如下枚举类型定义:
enum language { Basic=3,Assembly,Ada=100,COBOL,Fortran};
枚举量Fortran的值为()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6090-c089-2897e034650f.html
点击查看答案
以下程序的主函数中调用了在其前面定义的fun函数
#include
main()
{double a[15],k;
k=fun(a);
}
则以下选项中错误的fun函数首部是()。
A. double fun(double a[15])
B. double fun(double *a)
C. double fun(double a[])
D. double fun(double a)
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6478-c089-2897e0346511.html
点击查看答案
若有数组定义: char array [ ]="China"; 则数组 array所占的空间为( )。
A. 4个字节
B. 5个字节
C. 6个字节
D. 7个字节
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-50f0-c089-2897e034651e.html
点击查看答案
若有说明:int a[10];则对a 数组元素的正确引用是()。
A. a[10]
B. a[3.5]
C. a(5)
D. a[10-10]
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346504.html
点击查看答案