下列程序运行后的输出结果是__________。main(){int x[ ]={0,1,2,3,4,5,6,7,8,9};int s, i,*p;s=0;p=&x[0];for(i=1;i<10;i+=2)s+=*(p+i);printf (“sum=%d”,s);}
相似题目
-
以下程序运行后的输出结果是______。main(){charc1,c2;for(c1='0',c2='9';c1
-
有以下程序,其中 %u 表示按无符号整数输出,程序运行后的输出结果是 ______ 。 #include main() { unsigned int x=0xFFFF; printf(%u\n,x); }
-
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
-
有以下程序#includevoid main( ){int x = 0x13;if (x = 0x12) printf('True');printf('False ');}程序运行后的输出结果是________。
-
有以下程序#includevoid main( ){if (' ' == 0) putchar('1');if ('0' == 0) putchar('2');if ('a' > 'b') putchar('3');}程序运行后的输出结果是________。
-
有以下程序#includevoid main(){int a, b, c=241;a = c/100 % 9;b = ( -1 )&&( -1 );printf('%d, %d ', a, b );}程序运行后的输出结果是_______。
-
有以下程序main(){int a=666,b=888;printf(\%d\\n\,a,b);} 程序运行后的输出结果是______。
-
有以下程序:#include#includevoid main(){ char str[][10]={'oneWorld','oneDream!'};printf('%d,',strlen(str[1]));printf('%s ',str[1]);}程序运行后的输出结果是______。
-
有如下程序#includevoid main(){int i;for (i=0; i<5;i++)putchar('9' - i % 2);}程序运行后的输出结果是________。
-
以下程序程序运行后的输出结果是_____。#include#define MA(x) x*(x-1)void main(){ int a = 1, b = 2;printf('%d ', MA(1+a+b));}
-
下列程序运行后的输出结果是__________。main(){int b[10]={5,4,3,2},*p;for(p=b;p
-
有以下程序,其中%u表示按无符号整数输出,程序运行后的输出结果是______。#include < stdio.h> main(){ unsigned int x=0xFFFF; printf(\%u \,x); }
-
有以下程序#includevoid main( ){ char ch = '1';while (ch < '9'){printf('%d', ch - '0');ch++;}}程序运行后的输出结果是_______。
-
有以下程序: point(char *p){p+=3;} main() {char b[4]={'a','b','c','d',},*p=b; point(p);printf("%c\n",*p); } 程序运行后的输出结果是 ______。
-
有以下程序 main() int c=35;printf("%d\n",c&c);} 程序运行后的输出结果是 ______。
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
以下程序的功能是进行位运算: main() { unsigned chara,b; a=7^3;b= ~4&3; printf("%d %d\n",a,b); } 程序运行后的输出结果是 ______。
-
有以下程序 main() { int c=35; printf("%d\n",c&c); } 程序运行后的输出结果是______。A.0B.
-
以下程序运行后的输出结果是______。 ss(char*s) { char*p=s; while(*p)p++; return(p-s); } main
-
若有以下定义语句,程序运行后的输出的结果是______。 char s[]="9876",*p; for (p=s;p<s+2;p++) cout<<p<<endl;
-
以下程序运行后的输出结果是_____main(){inta=23;printf("%d/n",(a/3>0?a/10:a%3));}
-
以下程序运行后的输出结果是 ______。 include <stdio.h> struct NODE { int k; char s[20
-
下列程序运行后的输出结果是______。 define S(x) 4*x*x+1 main() { int i=6, j=8; printf("%dn",S(i+j)); }
推荐题目
- 一个公司允许他的经理定期修改预算,只要他们认为具备了改变的条件。以下哪项不是这种政策的风险?()
- 使用计算机应遵循的完全原则不包括如下哪一个()。
- 目前,世界上比较大的教派有()。
- CMOS的缺点是()
- 解决越区覆盖的方法有()
- ()指的是通过参数更改技术使用户对建筑设计或文档部分作的任何改动,都可以自动在其它相关联的部分反映出来。
- 根据清朝的四格六法,如果有官员被判定为有疾,一般会被降职。
- 金代的猛安谋克同时具有行政、军事和生产三种职能。()
- 常用的水封安全装置有无套管式和套管式两种。此题为判断题(对,错)。
- 1、Ⅰ、Ⅱ两台三相变压器并联运行,它们的联结组别相同,电压比相等,但Ⅰ的短路阻抗标幺值比Ⅱ的大,则()。