以下程序输出的结果是__________.#include [stdio.h]int main(){ int x=30,y=7; y=(-x+3)%y-2; printf("%d\n",y); return 0;}
举一反三
- 以下程序输出的结果是____________.#include [stdio.h]int main(){ int x=30,y=7; x=y=x%y; printf("%d\n",x); return 0;}
- 执行下面程序,输出结果是( )。#include [stdio.h] int main() { int x,y; for(x=1,y=5;x<y;x++) y--; printf("%d\n",x); return 0; } A: 3 B: 5 C: 7 D: 9
- 以下程序没有语法问题的是() A: B: include<;stdio.h>;int main( ){int x , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} C: D: include<;stdio.h>;int main( ){int x = 3 ;y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} E: F: include<;stdio.h>;int main( ){int x = 3 ,y ; printf( "%d\n" , x / y ) ;y = 5; return 0 ;} G: H: include<;stdio.h>;int main( ){int x = 3 , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;}
- 下面程序运行后的输出结果是_________。#include [stdio.h]int main(){ int x=10,y=20,t=0; if(x==y) t=x;x=y;y=t; printf("%d",x);}
- #include [stdio.h] int x,y; int f(int x){ y=x++; printf("%d",y); } int main(void){ int x=5; f(x); f(x); return 0; }