main(){int a=011;printf("%d\n",++a);}
举一反三
- 下列程序的输出结果是____? int main() { int a=011; printf("%d\n",++a); return 0; }
- ① stdio.hvoid main() { int a=1; printf(%d\n,a);}
- main () { int a=0; a+=(a=12); printf ("%d\n",a); }
- Which of the following program is right? A: include <stdio.h> int main(); { /*programming*/ printf("programming!\n"); return 0; } B: include <stdio.h> int main() { /*programming*/ printf("programming!\n"); return 0; } C: include <stdio.h> void main() { /*programming*/ printf("programming!\n") return 0; } D: include <stdio.h> int mian() { /*programming*/ printf("programming!\n"); return 0; }
- 以下程序的运行结果是 int main() { int a=50; if(a>50) printf("%d\n" ,a>50); else printf("%d\n",a<=50); }