[主观题]#include <conio.h>#include <stdio.h>int fun(int *s, int t, int *k){ int i;*k=0;(15)if(s[*k]<s[i])*k=i;return(16);}main(){int a[10]={ 876,675,896,101,301,401,980,431,451,777},k;clrscr();fun(a, 10, &k);printf("%d, %d\n ", k, a[k]);
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[单选题]下面程序的输出结果是#include<stdio.h>#include<string.h>main(){ char *p1="abc",*p2="ABC",str[50]= "xyz";strcpy(str+2,strcat(p1,p2));printf("%s/n",str);}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
[单选题]以下程序的输出结果是#include<stdio.h>struct st{ int x;int *y;}*p;int dt[4]={10,20,30,40};struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],};main(){ p=aa;printf("%d/n",++(p->x));}A.10B.11C.51D.60
[单选题]以下程序的输出结果是#include<stdio.h>struct st{ int x;int *y;}*p;int dt[4]={10,20,30,40};struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],};main(){ p=aa;printf("%d/n",++(p->x));}A.10B.11C.51D.60
[主观题]以下程序的输出结果是_[13]_______#include <stdio.h>#include <string.h>char *fun(char *t){ char *p=t;return(p+strlen(t)/2);}main(){ char *str="abcdefgh";str=fun(str);puts(str);}
[试题]以下程序的输出结果是_[19]_______#include <stdio.h>#define M 5#define N M+Mmain(){ int k;k=N*N*5; printf("%d/n",k);}
[试题]以下程序的输出结果是 ( 10 ) 。#include <string.h>main( ){ printf("%d/n",strlen("IBM/n012/1//"));}
[试题]以下程序的输出结果是 ( 12 ) 。# include <string.h>main( ){ char a[]={'/1', '/2', '/3', '/4', '/0'};printf("%d % d/n",sizeof( a ),srelen( a ));}