下面程序的输出结果是()。#includeintmain(){ints=023;printf("%d\n",--s);return0;}
举一反三
- 有以下程序,若从键盘给n输入的值是-3,则程序的输出结果是 #include intmain() { ints=0,a=1,n; scanf("%d",&n); do { s+=1; a=a-2; }while(a!=n); printf("%d\n",s); return0; }
- 10.以下程序中,运行结果是36的有()。 A: B: include C: defineM(y) y*y intmain() { printf("%d\n",M(6+0)); return0; } D: E: include F: defineM(y) (y)*(y) intmain() { printf("%d\n",M(6+0)); return0; } G: H: include intM(inty) { returny*y; } intmain() { printf("%d\n",M(6+0)); return0; } I: J: include intM(inty) { return(y)*(y); } intmain() { printf("%d\n",M(6+0)); return0; }
- 下面程序的运行结果是:We,s()。 #include intmain() { printf(“%s,%c”, "We",*"students"); return0; }
- 下面程序运行后的输出结果是____。 #include <stdio.h> int main() { printf("%d ", NULL); return 0; }
- 下列程序执行后的输出的结果是#include<stdio.h>intmain(){inta[4][4]={{1,3,5},{2,4,6},{3,5,7}};printf("%d%d%d%d\n",a[0][3],a[1][2],a[2][1],a[3][0]);return0;}