下面程序段的运行结果是_____。#includeiostreamusing namespace std;int main(){ int i=1,s=3; do {s+=i++; if (s%7==0) continue; else ++i;} while(s15); couti;}
下面程序段的运行结果是_____。#includeiostreamusing namespace std;int main(){ int i=1,s=3; do {s+=i++; if (s%7==0) continue; else ++i;} while(s15); couti;}
下面程序输出结果为:#includeiostreamusing namespace std;#includestring.hint main( ){ char st[20]=hello\0\t\\; coutstrlen(st); coutsizeof(st)endl; coutst; return 0;} A: 520hello B: 1220hello\0\t C: 520hello\t D: 1120hello└┘└┘
下面程序输出结果为:#includeiostreamusing namespace std;#includestring.hint main( ){ char st[20]=hello\0\t\\; coutstrlen(st); coutsizeof(st)endl; coutst; return 0;} A: 520hello B: 1220hello\0\t C: 520hello\t D: 1120hello└┘└┘
以下程序运行结果是()。#includeiostreamusing namespace std;void sub(int x, int *y,int *z){*y=*y-10;*y=*z+x;}int main(){int a=10,b=12,* pa,* pb;pa=a;pb=b;sub(b-a,pa pa);coutaendl;return 0;} A: 9 B: 4 C: 7 D: 2
以下程序运行结果是()。#includeiostreamusing namespace std;void sub(int x, int *y,int *z){*y=*y-10;*y=*z+x;}int main(){int a=10,b=12,* pa,* pb;pa=a;pb=b;sub(b-a,pa pa);coutaendl;return 0;} A: 9 B: 4 C: 7 D: 2
1