問題詳情
25)已知字符′A′的ASCII码值是65,字符变量cl的值是′A′,c2 的值是′D′。执行语句printf("%d,%d",c1,c2-2);后,输出结果是
(A)A,B
(B)A,68
(C)65,66
(D)65,68
(A)A,B
(B)A,68
(C)65,66
(D)65,68
參考答案
答案:C
難度:適中0.5
統計:A(0),B(0),C(0),D(0),E(0)
內容推薦
- 24)有以下程序#include main(){ int i,j,m=55;for(i=1;i<=3;i++)for(j=3;j<=i;j++)m=m%j;printf(&quo
- 23)若有以下程序#include int a[]={2,4,6,8};main(){ int i;int *p=a;for(i=0;i<4;i++)a[i]=*p;printf(&q
- 14)若函数调用时的实参为变量时,以下关于函数形参和实参的叙述中正确的是(A)函数的实参和其对应的形参共占同一存储单元 (B)形参只是形式上的存在,不占用具体存储单元(C)同名的实参和形参占
- 22)现有如下程序段#include "stdio.h"main(){ int k[30]={12,324,45,6,768,98,21,34,453,456};int
- 13)以下对C语言函数的有关描述中,正确的是(A)在C语言中调用函数时,只能把实参的值传给形参,形参的值不能传送给实参(B)C函数既可以嵌套定义又可以递归调用(C)函数必须有返回值,否则不能
- 21)以下程序的输出结果是main(){ int a,i;a=0;for(i=1;i<5;i++){ switch(i){ case 0:case 3:a+=2;case 1:case
- 34)以下函数返回a所指数组中最小的值所在的下标值fun(int *a, int n){ int i,j=0,p;p=j;for(i=j;i<n;i++) if(a[i](A)i=p(
- 24)以下数组定义中错误的是(A)int x[][3]={0}; (B)int x[2][3]={{l,2},{3,4},{5,6}}; (C)int x[][3]={{l,2,3},{4,
- 20)若程序执行时的输入数据是"2473",则下述程序的输出结果是#includevoid main(){ int cs;while((cs=getchar())!=;
- 33)下面程序的输出结果是#include#includemain(){ char *p1="abc",*p2="ABC",str[50]= &quo
內容推薦
- 34)设有定义:char p[]={′1′,′2′,′3′},*q=p;,以下不能计算出一个char型数据所占字节数的表达式是(A)sizeof(p) (B)sizeof(char) (C)
- twice(A)machine (B)invite (C)terrible (D)bitter
- 27)下面程序的文件名为t.exe,在DOS下输入的命令行参数为:t to meet me则程序输出的结果是#include "stdio.h"main(argc,arg
- doubt(A)amount (B)trouble (C)shoulder (D)group
- Jack,you seem in high spirits.--____________We won the match 4-0.(A)Guess what? (B)So what? (C)N
- I walked up to the top of the hill with my feiend, we enjoyed a splendid view of the lake(A)which
- north(A)thunder (B)worthy (C)neither (D)clothes
- 29)以下叙述中错误的是(A)改变函数形参的值,不会改变对应实参的值 (B)函数可以返回地址值(C)可以给指针变量赋一个整数作为地址值 (D)当在程序的开头包含头文件stdio.h时,可以给
- It is not how much we do but how much love we put into what we do______benefits our work most.(A)
- 39)下列程序的输出结果是#include "stdio.h"#define M(x,y) x%ymain(){ int a,m=12,n=100;a=M(n,m);pr
- His first novel good reviews since it came out last month.(A)receives (B)is receviing (C)will rec
- (A) What are you up to this weeked?(B)Don’t mention it.(C)Any other suggestions? (D)Anything I can d
- 30)下面程序的输出结果是#includemain(){ int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%dn",*p+9);
- 4)下面关于对象概念的描述中,错误的是(A)对象就是C语言中的结构体变量 (B)对象代表着正在创建的系统中的一个实体(C)对象是一个状态和操作(或方法)的封装体 (D)对象之间的信息传递是通
- 40)假定当前盘符下有两个如下文本文件:文件名 atxt atxt内容 123# 321#则下面程序段执行后的结果为#include "stdio.h"void
- As is know to all, People’s Republic of China is Biggest developing countryin the world(A)the ;不填
- 人體內最大的神經是 (1) 股神經 (2) 坐骨神經 (3) 橈神經 (4) 肋間神經。(A)2(B)4(C)3(D)1
- 35)有以下函数int aaa(char *s){ char *t=s;while(*t++);t--;return(t-s);}以下关于aaa函数的功能的叙述正确的是(A)求字符串s的长度
- 31)有下面程序段#include "stdio.h"#include "string.h"main(){ char a[3][20]={{"
- —Will you read me a story ,Mummy?--OK.You________have one if you go to bed as soon as possible.(A
- __________________all of them are strong candidates, only one will be chosen for the post.(A)Sinc
- 37)下列选项中错误的说明语句是(A)char a[]={′t′,′o′,′y′,′o′,′u′,′′}; (B)char a[]={"toyou"};(C)char a
- 1)一、选择题在下列各题的A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确的选项涂写在答题卡相应位置上,答在试卷上不得分。算法的空间复杂度是指(A)算法程序的长度 (B)算法
- Some insects________the colour of their surroundings to protect themselves.(A)take in (B)take off