单选题数字字符'0'的ASCII值为48, 若有以下程序: #include
<stdio.h> main( )
char a='1',b ='2'; printf( "% c,",b + +
); printf(" % d /n" ,b - a);
} 程序运行后的输出结果是{{U}} {{/U}}。
A. 3,2
B. 50,2
C. 2,2
D. 2,50
单选题以下叙述中错误的是______。
单选题下面语句的输出结果是______。
printf("%d、n",strlen("/t"/065/xff/n"));
A. 14
B. 8
C. 5
D. 输出项不合法,无正常输出
单选题若有定义语句:char*s1=“OK”,*s2=“ok”;以下选项中,能够输出“OK”的语句是( )。
单选题有以下程序:
#include <stdio.h>
#include <string.h>
main()
{
char s[]="Beijing";
printf("%d/n",strlen(strcpy(s,"China")));
}
程序运行后的输出结果是______。
单选题设有定义:char p[]={‘1’,‘2’,‘3’,},*q=p;,以下不能计算出一个char型数据所占字节数的表达式是______。
单选题有以下程序:
#include
int f(int x)
{
int y;
if(x==0‖x==1)return(3);
y=x*x—f(x一2);
return y;
main()
{
int z;
z=f(3);
prinff(“%d\n”,z);
}
程序运行后的输出结果是( )。
单选题下面选项中关于位运算的叙述正确的是______。
单选题有以下程序:
#include
main()
{int x=0x9;
printf("%c/n",'A'+x)
}
程序运行后的输出结果是( )。
单选题有如下程序:
#include <stdio.h>
main()
{
if("\0" == 0) putehar("X");
if("0" == 0) putehar("Y");
if("a">"b") putchar("Z").
printf("\n");
}
程序运行后的输出结果是______。
单选题以下程序的输出结果是( )。 #include<stdio.h> int f() static int i=0; int s=1; s+=i; i++; return s; main() int i, a=0; for(i=0; i<5; i++) a+=f(); printf("%d/n", a); A) 20 B) 24 C) 25 D) 15
单选题在数据库系统中,所谓数据的独立性是指 A) 数据与程序独立存放 B) 不同的数据被存放在不同的文件中 C) 不同的数据只能被对应的应用程序所使用 D) 以上三种说法都不对
单选题有以下程序:
#include <stdio.h>
#include <stdlib.h>
void fun(int *p1, int *p2, int *s)
{ s=(int * )malloc(sizeof(int));
*s=*p1+*(p2++);
main( )
{int a[2]={1,2},b[2]={10,20},*s=a;
fun(a,b,s); printf("%d/n", *s);
}
程序运行后的输出结果是______。
单选题有以下程序: #include <stdio.h> int fun() static int x=1; x*=2;return x; main() int i,s=1; for(i=1;i<=3;i++)s=fun(); printf("%d/n",s); 程序运行后的输出结果是 A) 0 B) 1 C) 4 D) 8
单选题不合法的C语言字符常量是( )。
单选题if语句的基本形式为:if(表达式)语句,其中“表达式”( )。
单选题下列程序的运行结果为______。 #define MS DOS #ifdef MS DOS #define INTEGER SIZE 32 #else #define INTEGER SIZE 16 #endif main () printf ("integer_size=%d/n", INTEGER_SIZE);
单选题若有如下程序: #include"stdio.h" void main() {FILE *fp; fp=fopen("test","wb") fprintf(fp,"%d%.1f,%c%c",5,238.41,'B','h'); fclose(fp); } 则程序运行后向文件输出的结果是 ( )
单选题设有定义:char P[]={'1',‘2’,‘3’},*q=p;,以下不能计算出一个char型数据所占字节数的表达式是( )。
单选题下列函数值的类型是{{U}} {{/U}}。
fun(doublex) { float y;
y=3*x-4; return y; }
A.int
B.不确定
C.void
D.float