相关题目
单选题
266、若有定义:int *p[3];,则以下叙述中正确的是______。
单选题
265、已定义以下函数
fun( )
{ return *p; }
该函数的返回值是______。
单选题
4) struct
{int red;
int green;
int blue;
}cl;
单选题
3) struct color
{ int red;
int green;
int blue;
}cl;
单选题
2) struct color cl
{ int red;
int green;
int blue;
};
单选题
1) typedef struct
{int red;
int green;
int blue;
} COLOR;
单选题
264、以下选项中不能正确把cl定义成结构体变量的是______。
单选题
263、有以下程序
main()
{ int k=4,n=0;
for( )
{ n++;
if(n%3!=0) continue;
k--; }
printf( );
}
程序运行后的输出结果是______。
单选题
262、若有如下程序段,其中s、a、b、c均已定义为整型变量,且a、c均已赋值(c大于0)。
s=a;
for(b=1;b<=c;b++) s=s+1;
则与上述程序段功能等价的赋值语句是______。
单选题
261、有以下程序
main()
{ int s=0,a=1,n;
scanf( );
do
{s+=1; a=a-2;}
while( );
printf( );
}
若要使程序的输出值为2,则应该从键盘给n输入的值是______。
