单选题以下各选项中的代码段执行后,变量y的值不为1的是______。
单选题设有以下语句: char str[4][12]="aaa","bbbb","ccccc","dddddd",*strp[4]; int i; for(i=0;i<4;i++) strp[i]=str[i]; 下列选项不是对字符正确引用的是(其中0≤k<4)( )。 A) strp B) str[k][k] C) * strp[k] D) ** strp
单选题有以下程序 void f(int n,int *r) { int r1=0; if(n%3==0) r1=n/3; else if(n%5==0) r1=n/5; else f(--n,&r1); *r=r1; } main() { int m=7,r; f(m,&r);printf("%d",r); } 程序运行后的输出结果是
单选题若调用fputc函数输出字符成功,则其返回值是( )。
单选题有下列程序:
#include<stdio.h>
#include<string.h>
main()
{char a[5][10]={"efg","abcd","mnopq","hijkl","rstuvwxyz"};
char *p[5];
int i,len;
for(i=4;i>=0;i--)
{p[i]=a[i];
len=strlen(p[i]);
printf("%s",p[i]+len-2);
printf("%c",{(p[i]+len-1));
}
}
程序执行后的输出结果是______。
单选题下列叙述中错误的是( )。
单选题有以下程序:
#include <stdio.h>
int fun(int a, intB)
{ return a+b; }
main( )
{ int x=6, y=7, z=8, r;
r = fun (fun(x,y), z- -);
printf("%d/n", r);
}
程序运行后的输出结果是______。
单选题以下与函数fseek(fp,0L,SEEK_SET)有相同作用的是______。
单选题有以下程序: #include<stdio.h> main() char c[6]; int i=0; for(j<6;c[i]=getchar(),i++); for(i=0,i<6;i++)putchar(c[i]); printf("/n"); 如果从键盘上输入: ab<回车> c<回车> def<回车> 则输出结果为______。
单选题
单选题若有以下程序:
#include <stdio.h>
main( )
{int a=0,b=0,c=0
c= (a+ = + +b, b+ =4);
printf("%d,%d,% d/n",a,b,c);
}
则程序的输出结果是______。
单选题有以下程序:#include<stdio.h>#define SUB(a)(a)-(a)main(){Int a=2,b=3,c=5,d;d=SUB(a+b)*c;printf("%d\n",d);}程序的运行结果是( )。
单选题在宏定义# define P13.1415926中,用宏名PI代替一个 ( )
单选题下列关于栈的叙述中,正确的是
单选题有以下程序
#include
int fun(int a,int b)
{if(b=0)return a;
else return(fun(--a,--b));
}
main()
{printf("%d\n",fun(4,2));}
程序的运行结果是( )。
单选题下列选项中,能正确定义数组的语句是( )。
单选题有以下程序:
#include <stdio.h>
int fun(int n)
{ int a;
if(n= =1)return 1;
a=n+fun(n-1);
return(a);
}
main( )
{printf("%d/n",fun(5)); }
程序的输出结果是______。
单选题已知字符A的ASCII代码值是65,字符变量c1的值是A,c2的值是D。则执行语句printf("%d,%d",c1,c2-2);的输出结果是______。
单选题有以下程序:main(){intn=0;do{n++;printf("%d/n",n);}while(n<=3);}程序的输出结果是______。A.B.C.D.1
单选题已知字母A的ASCII代码值为65,若变量kk为char型,以下不能正确判断出比中的值为大写字母的表达式是