#include <stdio.h>
main( )
{ char *ch[4]={"red',"green","blue"};
int i=0;
while( ch[i] )
{ putchar( ch[i][0]); i++;)
}
[试题]以下程序的输出结果是( 10 )。#include .<stdio.h>Main( ){ char a,b;for( a=0; a<20; a+=7) { b=a% 10; putchar(b+'0'); }}
[试题]以下程序的输出结果是( 7 )。#include <stdio.h>main( ){ int a=37;a+=a%=9; printf(”%d/n”, a),}
[主观题]以下程序的输出结果是#include <stdio.h>main(){ int k=4,s=0; do{ if((k%3)==0) continue; s+=k;k++; }while(k>10); printf("s=%d/n",s);}
[单选题]以下程序的输出结果是include <stdio.h>main(){ int a,b,d=241;a=d£¯100%9;b=(£1)&&am以下程序的输出结果是#include <stdio.h>main(){ int a,b,d=241; a=d/100%9; b=(-1)&&(-1); printf("%d,%d/n",a,b);}A.6,1 B.6,0 C.2,1 D.2,0
[试题]以下程序的输出结果是 ( 8 ) 。#include<stdio.h>main(){int i,j,sum;for(i=3;i>=1;i--){sum=0;for(j=1;j<=i;j++) sum+=i*j;}printf("%d/n",sum);}
[试题]以下程序的输出结果是 ( 9 ) 。#include<stdio.h>main(){ int j,a[]={1,3,5,7,9,11,13,15},*p=a+5;for(j=3;j;j--){ switch(j){ case 1:case 2:printf( " %d " ,*p++); break;case 3:printf( " %d " ,*(--p));}}}
[单选题]以下程序的输出结果是#include<stdio.h>main(){int a=15,b=21,m=0;switch(a%3){case 0:m++;break;case 1:m++;switch(b%2){ default:m++;case 0:m++;break; } }printf("%d/n",m);}A.1B.2C.3D.4
[主观题]以下程序的输出结果是#include <stdio.h>main(){ int i,j,sum; for(i=5;i>=1;i--) { sum=0; for(j=i;j<=i;j++) sum+=i*j; } printf("%d/n",sum);}
[单选题]以下程序的输出结果是( )。#include<stdio.h>void main(){int a,b,d=241; a=d/100%9; b=(-1)&&(-1); printf("%d,%d/n",a,b);}A.6,1 B.2,1 C.6,0 D.2,0
[主观题]以下程序的输出结果是#include <stdio.h>main(){ int j, a[]={1,3,5,7,9,11,13,15},*p=a+5; for(j=3; j; j--) { switch(j) { case 1: case 2: printf("%d",*p++); break; case 3: printf("%d",*(--p)); } }}