单选题有以下程序:
#include <stdio.h>
main()
{int a[]={1,2,3,4},y,*p=
--p;y=*p;printf("y=%d/n",y);
}
程序的运行结果是______。
单选题有以下程序:
#include
int f(int x);
main()
{int n=1,m;
m=f(f(f(n)));printf(''%d\n'',m);
}
int f(int x)
{ retum x*2;}
程序运行后的输出结果是( )。
单选题有以下程序
#include<stdio.h>
main()
{ int i=5;
do
{ if(i%3==1)
if(i%5==2)
(printf("%d",i);break;}
i++;
} while(i!=0);
printf("/n"1);
}
程序的运行结果是______。
单选题有以下程序:
#include <stdio.h>
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,*pA=,以下 scanf语句中能正确为变量A读入的数据是 ______。 A) scanf ("%d",pA) ; B) scanf ("%d",A) ; C) scanf ("%d", D) scanf ("%d",*pA) ;
单选题下列程序的输出结果是______。
#include<stdio.h>
main()
{ int a=0, i;
for(i=1; i<5; i++)
{ switch(i)
{ case 0:
case 3: a+=1;
case 1:
case 2: a=2;
default: a+=3;
}
}
printf("%d", a);
}
单选题若变量已正确定义并赋值,则错误的赋值语句是______。
单选题数据库设计中反映用户对数据要求的模式是______。
单选题有下列程序: # include<stdio.h> main() int a=6,b=7,m=1; switch(a%2) case 0:m++;break; case 1:m++; switch(b%2) default:m++; case 0:m++;break; printf("%d/n",m);
单选题为了建立如图所示的存储结构(即每个结点含两个域,data是数据域,next是指向结点的指针域),则在[]处应填入的选项是______。
单选题下面程序的输出结果是( )。 #include<stdio.h> main() {char a[]={'a','b','c','d','f','g'},*p; p=a; printf("%c/n",*p+4); }
单选题有以下程序:
#include <stdio.h>
#include "string.h"
void fun(char *s[],int n)
{
char *t;int i,j;
for(i=0;i<n-1;i++)
for(j=i+1;j<n;j++)
if(strlen(s[i])>strlen(s[j]))
{t=s[i];s[i]=s[j];s[j]=t;}
}
main()
{
char *ss[]={"bcc","bbcc","xy","aaaacc","aabcc"};
fun(ss,5);printf("%s,%s/n",ss[0],ss[4]);
}
程序的运行结果是______。
单选题下列程序的输出结果是______。
#include<stdio.h>
void fun(int*a,int*b)
{int *k;
k=a;a=b;b=k;}
main()
{int a=1,b=2,*x=
fun(x,y);
printf("%d%d",a,b);
}
单选题以下叙述中正确的是______。
单选题以下选项中,能正确表示a≥10或a≤0的关系表达式是______。
单选题有以下程序: # include<stdio.h> main() char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; scanf("%s %s",p,q);printf("%s %s/n",p,q); 若从键盘输入;abc def<回车>,则输出结果是 ______。 A) def def B) abc def C) abe d D) d d
单选题若x=2,y=3,则x&y的结果是( )。
单选题下面程序 main() int x=32; print("%d/n",x=x<<1); 的输出是______。 A) 100 B) 160 C) 120 D) 64
单选题若要求从键盘读入含有空格字符的字符串,应使用函数
单选题若有以下语句,则对数组a元素的引用不正确的是(0≤i≤9)( )。 int a[10]=0,1,2,3,4,5,6,7,8,9,*p=a;