单选题设x是int型变量,则计算表达式“x=25/3%3”的值是 ( )
单选题有以下程序
#include <stdio.h>
void main()
{
int a=1,b=0;
printf(%d,",b=(a++)+(a++));
printf("%d/n",a+b);
}
程序运行后的输出结果是______。
单选题在下列关系运算中,不改变关系表中的属性个数但能减少元组个数的是( )。
单选题以下选项中,与k=n++完全等价的表达式是{{U}} {{/U}}。
A. k=n,n=n+1
B. n=n+1,k=n
C. k= ++n
D. k+=n+1
单选题以下对一维数组a的正确说明是( )。
单选题有以下程序: #include <stdio.h> int f(int n); main() int a=3,s; s=f(a);s=s+f(a);printf("%d/n",s); int f(int n) static int a=1; n+=a++; return n; 程序运行后的输出结果是 A) 7 B) 8 C) 9 D) 10
单选题设有定义:int sum=100,i; 以下选项中,能够实现sum-=1+2+3…+10的程序段是( )。
单选题以下关于C语言数据类型的叙述中正确的是______。
单选题有以下程序:
#include<stdio.h>
main()
{
int a=1,b=2,c=3;
char flag;
flag=b>=2
switch(a)
{
case 1:switch(flag)
{
case 0: printf("**");break;
case 1: printf("%%");break;
}
case 0: switch(c)
{
case 1: printf("$$");break;
case 2: printf("break;
default: printf("##");
}
}
printf("/n");
}
程序运行后的输出结果是______。
单选题有以下程序#include main() int x=1,y=0,a=0,b=0; switch(x) case 1: switch(y) case 0: a++; break; case 1: b++; break; case 2: a++; b++; break;case 3: a++; b++;printf("a=%d,b=%d/n",a,b);程序的运行结果是________。
单选题有如下程序: int a[10]=11, 12, 13, 14, 15, 16, 17, 18, 19, 20; int*p=&a[3], b; b=p[5]; 则b的值是 A) 15 B) 16 C) 18 D) 19
单选题以下程序的输出结果是 {{U}} {{/U}} void
fun(float *p1,float *p2,float *s) { s=(float
*)calloc(1,sizeof(float)); *s=*p1+*p2++;
} main() { float
s[2]={1.1,2.2},b[2]=<10.0,20.0},*s==a;
fun(a,b,s); printf("%5.2f/n",* s); }
A. 11.10
B. 12.00
C. 21.10
D. 1.10
单选题有以下程序:
#include<stdio.h>
struct tt
{ int x;struct tt *y;} s[3]={1,0,2,0,3,0};
main()
{ struct tt *p=s+1;
p->y=s;
printf("%d,",p->x);
p=p->y;
printf("%d/n",p->x);
}
程序运行后的输出结果是______。
单选题以下程序片段的输出结果是______。 char str[]="abc/n/012///""; printf("%d",strlen(str));
单选题下列程序的输出结果是______。main() int i; for(i=0;i<2;i++) add();add() int x=0; static int y=0; printf("%d,%d/n",x,y); x++;y=y+2;
单选题有三个关系R、S和T如下:
单选题下列程序的输出结果是( )。 main() int i=1 j=2,k=3; if(i++==1
单选题有以下定义: #include char a[10],*b=a; 不能给数组a输入字符串的语句是( )。
单选题若变量已正确定义,有以下程序段: int a=3, b=5, c=7; if(a>b) a=b; c=a; if(c!=a)c=b; printf("%d, %d, %d/n", a, b, c); 其输出结果是 A) 程序段有语法错误 B) 3,5,3 C) 3,5,5 D) 3,5,7
单选题表达式0x13&0x17的值是( )。 A) 0x17 B) 0x13 C) 0xf8 D) 0xec