单选题:下列程序的输出结果是( )。main()(int p[83={11,12,13,14,15,16,17,18),i=0,

  • 题目分类:C语言
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
下列程序的输出结果是( )。
main()
(int p[83={11,12,13,14,15,16,17,18),i=0,j=0;
while(i++<7)
if(p[i]%2)j+=P[i];
printf(”%d\n”,j);
) A.42
B.45
C.56
D.60

参考答案:
答案解析:

表达式“~0x11”的值是( )。

表达式“~0x11”的值是( )。A.0xFFEE B.0x71 C.0x0071 D.0xFFEl

查看答案

设有下列程序段:char str[]="HelloWorld":char*ptr;ptr=str ;执行上面的程序段

设有下列程序段:char str[]="HelloWorld":char*ptr;ptr=str ;执行上面的程序段后,*(ptr+10)的值为(

查看答案

Self-employment has affected Sally's attitude to life.

Self-employment has affected Sally's attitude to life. A.Right B.Wrong C.Doesn'

查看答案

According to the author,the reason why we go wrong about ou

According to the author,the reason why we go wrong about our fdends is that____

查看答案

How can we prevent{uvenile crime?

How can we prevent{uvenile crime?A.Create a more caring environment. B.Improve

查看答案