单选题若有以下程序
#include
int*f(int*s,int*t){int k;
if(*s<*t){
k=*s;*s=*t;*t=k;}
return s;}
main(){int i=3,j=5,*p=&i,*q=&j,*r;
r=f(p,q);
printf("%d,%d,%d,%d,%d\n",i,j,*p,*q,*r);}
则程序的输出结果是
单选题下列程序的输出结果是( )。 #include<stdio.h> main() int a=3,b=2,c=1; if(a<B) if(b<0) c=0; else c++; printf("%d/n",C) ;
单选题有以下程序
#include <stdio.h>
typedef struct {int b,p;}A;
void f(A c) /* 注意:c是结构变量名 */
{ int j;
c.b+=1;c.p+=2;
}
main()
{ int i;
A a={1,2};
f(A);
printf("%d,%d/n",a.b,a.p);
}
程序运行后的输出结果是______。
单选题有以下程序: main() { int x=1,y=0,a=0,b=0; switch(x) { ease 1: switch(y) } } printf(“a=%d,b=%d\n”,a,b); }程序的运行结果是( )。
单选题有以下程序 int fun(int n) main() {if(n==1)return 1; {int x; Else scanf("%d”,&x);x=fun(x); return(n+fun(n.1)); printf("%d\n",x); } 执行程序时,给变量x输入10,程序的输出结果是
单选题若已定义:int a=3, b=4, c=5; ,则下面表达式中值为0的是______。
单选题设有定义:int a=1,b=2,c=3;,以下语句中执行效果与其他三个不同的是( )。
单选题有以下程序(注:字母A的ASCII码值是65)
#include <stdio.h>
void fun(char *s)
{ while(*s)
{ if(*s%2) printf("%c",*s);
s++;
}
}
main()
{ char a[]="BYTE";
fun(a);
printf("/n");
}
程序运行后的输出结果是______。
单选题有以下程序:
#include<stdio.h>
#include<stdlib.h>
void fun(double*p1,double*p2,double*s)
{s=(double*)calloc(1,sizeof( double));
*s=*p1+*(p2+1);
}
main()
{ double a[2]={1.1,2.2},b[2]={10.0,20.0},*s=a;
fun(a,b,s);
printf("%5.2f/n",*s);
}
程序运行后的输出结果是______。
单选题设有定义:“long x=123450L;”,则以下能够正确输出变量x的是
____
。
单选题表达式a+=a一=a=9的值是( )。
单选题若有如下程序: main() { int m=-1; printf("%d,%u,%0,%x",m,m,m,m); } 则程序运行后的输出结果是 ( )
单选题若有说明语句:int a,b,c,*d=,则能正确从键盘读入3个整数分别赋给变量a、b、c的语句是( )。
单选题排序方法中,将整个无序序列分割成若干小的子序列并分别进行插入排序的力法,称为 ______。
单选题有以下程序 void fun(int *a,int i,int j)
{ in t; if(i<j)
{t=a[i];a[i]=a[j];a[j]=t;
fun(a,++i,--j); } }
main() { int a[]={1,2,3,4,5,6},i;
fun(a,0,5); for(i=0;i<6;i++)
printf("%d",a[i]); } 执行后输出结果是
A. 6 5 4 3 2 1
B. 4 3 2 1 5 6
C. 4 5 6 1 2 3
D. 1 2 3 4 5 6
单选题有以下程序: #include < stdio. h > main ( ) char s[] = "ABCD", * p; for(p=s+1;p<s+4;p++) pfintf(" % s /n" ,p);
单选题数据厍系统的核心是( )。
单选题以下程序的输出结果是 intf() static int i=0; int s=1; s+=i;i++; retumS; main() int i,a=0; for(i=0;i<5;i++)a+=f(); printf("%d/n",
单选题以下叙述中正确的是
单选题下面程序的输出结果是______。 #include<string.h> main() char*p1="abc",*p2="ABC",s[20]="xyz"; strcpy(s+1,p2); strcat(s+2,p1); printf("%s/n",s); A) xABCabc B) zABCabc C) yzabcABC D) xyzABCabc