写出下面程序的执行结果。int main( ) { int num=0; while(num<=2){ num++; printf("%d\n",num);}}
查看答案
下面程序当输入为:"quert?"时,它们的执行结果是什么? #include int main( ) { char c;c=getchar( ); while (c!='?') { putchar(c);c=getchar( ); }}
以下程序的运行结果是 ____#include "stdio.h"void fun(int *p1,int *p2){ int x=0,y=0; printf("x=%d,y=%d\n",x,y); *p1=3+*p1; *p2=4-*p2; printf("x=%d,y=%d\n",x,y);}int main(void){ int x=2,y=1; fun(&x,&y); printf("x=%d,y=%d\n",x,y);return 0;}
#include "stdio.h“int main(void){int a[4]={1,2,0,2};int s0=0,s1=0,s2=0,i;for(i=0;i<4;i++){ switch(a[i]){case 0:s0++;break;case 1:s1++;break;case 2:s2++;break;}}printf("s0=%d\n",s0);printf("s1=%d\n",s1);printf("s2=%d\n",s2);return 0;}程序运行结果是:
以下不是CSS伪类选择器的是?
A. :first-child()
B. :before
C. :center
D. :link