单选题已知大写字母A的ASCII码是65,小写字母a的ASCII码是97。以下不能将变量c中的大写字母转换为对应小写字母的语句是
单选题关于子函数调用的叙述中正确的是( )。
单选题设有定义:intk=1,m=2;noat f=7;则下列选项中错误的表达式是( )。
单选题以下程序的输出结果是 ( ) main( ) static char a[10] ="Chinese"; printf("%d",strlen(a));
单选题执行以下程序后,test.txt文件的内容是(若文件能正常打开) ( )。#include <stdio.h>#include <stdlib.h>main( ) FILE * fp; char * s1 = "Fortran" , * s2 = "Basic"; if((fp = fopen( "test. txt" ," wb" )) = = NULL) prinff( "Can't open test. txt file /n"); exit(1); fwrite( s1 ,7,1 ,fp); /* 把从地址s1开始到7个字符写到fp所指文件中*/ fseek(fp,OL,SEEK_SET); /*文件位置指针移到文件开头*/ fwrite (s2,5,1,fp); felose (fp);
单选题已定义c为字符型变量,则下列语句中正确的是
A)c='97'; B)c="97"; C)c=97; D)c="a";
单选题有以下程序:
main()
{int a=0, b=0;
a=10; /*给a赋值
b=20; 给b赋值 */
printf("a+b=%d/n", a+b); //输出计算机结果
}
程序运行后的输出结果是______。
单选题下面描述中错误的是______。 A.系统总体结构图支持软件系统的详细设计 B.软件设计是将软件需求转换为软件表示的过程 C.数据结构与数据库设计是软件设计的任务之一 D.PAD图是软件详细设计的表示工具
单选题以下程序 #include<stdio.h> #include<string.h> main() char*pl="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2.strcat(p1,p2)); printf("%s/n,str); 的输出是______。
单选题若有定义语句:int a,b,c,*p=,接着执行以下选项中的语句,则能正确执行的语句是______。
单选题以下程序的输出结果是( )。 #include<stdio.h> main() { int a=4,b=3,c=2,d=1; printf(''%d'',a<b?a:d<c?d:b); }
单选题若执行调用语句:n=fun(3);,则函数fun总共被调用的次数是( )。int fun(int k){ if(k<1)return 0;else if(k==1)return 1; else return fun(k一1)+1;}
单选题下面对对象概念描述正确的是
单选题下面程序的输出结果为 ______。 #include<string.h> main() char pl [7]="abc",p[]2="ABC"str[50]="xyz"; strcpy(str,strcat(p1,p2)); printf("%s"str);
单选题C语言中各种基本数据类型的存储空间长度排列为 ( ) A) char≤long≤int≤float≤double B) double≤float≤long≤int≤char C) char≤int≤long≤float≤double D) float≤int≤long≤char≤double
单选题数据库设计包括两个方面的设计内容,它们是_______。A) 概念设计和逻辑设计 B) 模式设计和内模式设计C) 内模式设计和物理设计 D) 结构特性设计和行为特性设计
单选题有以下程序
#include <stdio.h>
int a=4;
int f(int n)
{ int t=0; static int a=5;
if(n%2) {int a=6; t+=a++;}
else {int a=7; t+=a++;}
return t+a++;
}
main()
{ int s=a,i=0;
for(;i<2;i++) s+=f(i);
printf("%d/n",s);
}
程序运行后的输出结果是______。
单选题有以下程序#includeint a=1;int fun(int c) static int a=2;c=c+1;return (a++)+c;main() int i, k=0;for(i=0; i<2; i++) int a=3; k+=f
单选题若有以下定义和语句
char s1[10]="abcd!",*s2="/n123//";
printf("%d %d/n", strlen(s1),strlen(s2));
则输出结果是
单选题以下函数返回a所指数组中最小的值所在的下标值 fun(int *a,int n) { int i,j=0,p; p=j for(i=j;i<n;i++) if(a[i]<a[p])______; return(p);} 在横线处应填入的是