C语言的多选问题,高手帮忙做下 C语言的简单问题(高手帮忙写一下)

作者&投稿:慈崔 (若有异议请与网页底部的电邮联系)
1、下列常数中能作为C的常量的是:
A、0x4
B、2.5e-2
C、33
D、03A
【选ABC,因为0开头的数字为八进制数,仅有0~7,木有A这个数】
2、下列计算机语言中,CPU不能直接执行的是:
A、自然语言
B、高级语言
C、汇编语言
D、机器语言
【选ABC,高级语言,编译器会转化为低级语言;自然语言CPU读不懂】
3、与汇编程序相比,C语言程序的优点包括( )。
A、更容易移植
B、更容易阅读
C、目标代码质量较高
D、能够进行位操作
【选ABC】
4、有关结构化程序设计,正确的说法是( )。
A、每个算法都必须包含三种基本结构
B、每个结构化的算法都可以归结为三种基本结构
C、三种基本结构可以相互嵌套
D、三种基本结构可以交叉设计
【选BC,至今木有第三种基本结构】
5、下列属于字符串的是( )
A、“3 = y”
B、“( x + y ) = 6”
C、“y”
D、“3”
【ABCD】

有问题请追问

1.ABC
03A不可以作为常量,其他都可以。
2.AB
汇编语言和机器语言CPU是可以直接执行的。
3.ABC
汇编也可以进行位操作。
4.BCD
算法可以使用单一基本结构也可以使用组合后的基本结构。
5.ABCD

1.abc
2.abc
3.ab
4.bcd
5.cd
第三题不太清楚

1.ABC 2.AB 3.ABC 4.BCD 5.ABCD

1. A
2. C
3. D
4. B
5. D
6. A
9. A
10. A
11. C
12. B
13. D
14. B
15. A
16. A
17. C
20. C
概念题都忘了
第7题太不清楚了


c语言问题,请高手帮忙做一下~

#include
#include
#define MAXSIZE 1024
typedef int datatype;
struct sl{
datatype data[MAXSIZE];
int last;
};

int length(struct sl *list);
datatype get(struct sl *list, int i);
int find(struct sl *list, datatype e);
void insert(struct sl *list, datatype e, int i);
void del(struct sl *list, int i);
void display(struct sl *list);
int main(){
struct sl *list;
int i, e;

// dynamically allocate a piece of memory for the sequential list
list = (struct sl*)malloc(sizeof(struct sl));

// initialize the list
list->last = 9;
for (i=0; ilast; i++){
list->data[i] = i*2;
}

printf("The length of the sequential list is: %d
", length(list));
i=5;
printf("The element in the position %d is %d
", i, get(list, i));
e=10;
printf("The position of the element %d is %d
", e, find(list, e));
printf("
The original list is
");
display(list);
i=1;
e=100;
insert(list, e, i);
printf("After insert 100 in 1, the list becomes:
");
display(list);
i=5;
del(list, i);
printf("After delete the element in 5, the list becomes:
");
display(list);
}
// return the length of the sequential list
int length(struct sl *list){
return list->last;
}
// returns the element in the position i
// Note: the position in a sequential list is its index
// if the input i is not valid, return 0
datatype get(struct sl *list, int i){
if (i > list->last)
return 0;
else
return list->data[i];
}
// return the position of the element e
// if the element e is not in the list, return -1
int find(struct sl *list, int e){
int i;
for (i = 0; i last; i++)
if(e == list->data[i])
return i;

return -1;
}
// output the elements in order
void display(struct sl *list){
int i;
for(i = 0; i last; i++)
printf("%d ", list->data[i]);
printf("
");
}
// insert the element e in the position i
// check for the validation of the input i
void insert(struct sl *list, int e, int i){
int pos;
for(pos = list->last; pos >= i; pos--)
list->data[pos] = list->data[pos - 1];

list->data[pos] = e;
list->last++;
}
// delete the element in the position i
// check for the validation of the input i
void del(struct sl *list, int i){
int pos;
for(pos = i; pos last; pos++)
list->data[pos] = list->data[pos + 1];

list->last--;

}

输出结果
The length of the sequential list is: 9
The element in the position 5 is 10
The position of the element 10 is 5

The original list is
0 2 4 6 8 10 12 14 16
After insert 100 in 1, the list becomes:
100 0 2 4 6 8 10 12 14 16
After delete the element in 5, the list becomes:
100 0 2 4 6 10 12 14 16

1
#include

int main()
{
int a,b,c,M;
scanf("%d%d%d",&a,&b,&c);
M=a;
if (M<b) M=b;
if (M<c) M=c;
printf("Max=%d
",M);
return 0;
}

2
#include

int main()
{
int i,j=0;
for (i=1900;i<=2000;i++)
if (i%4==0 && i%100!=0 || i%400==0)
{
printf("%d",i);
if (++j%3)
printf(" ");
else printf("
");
}
return 0;
}

3
#include

int main()
{
int n=10,i,j=1,k=0;
for (i=1;i<=n;i++)
k+=j*=i;
printf("result=%d
",k);
return 0;
}

4
#include

double ave(int a[])
{
int i,j=0;
for (i=0;i<10;i++)
j+=a[i];
return j/10.0;
}
int main()
{
int i,j=0;
int a[10]={90,91,92,93,94,95,96,97,98,99};
printf("Average Score=%.2f
",ave(a));
return 0;
神一样的人

紧急求高手帮忙做下C语言考试题
答:1:宏定义语句 #define f(x,y) fopen(x,y) 的引用 f("a.txt","rw"); 置换展开后为__fopen("a.txt","rw")_。2:在C语言中,表示逻辑“假”值用__!_表示。3:设i为int型变量,且初值是3,则表达式“i++-3”的值是_0__。4:设 int a=3,b=5,c=7;,则表达式a>c||c>b...

汇编语言的几个题目,高手帮忙做做,谢谢了
答:MOV Dl,TABLE1[SI] ;取下一个数据 MOV AL,STORE ; 和小的数比较 loop lp MOV DX,OFFSET STORE ;显示最大的数据 MOV AH,09H INT 21H MOV AH,4CH INT 21H CODE ENDS END START

C语言作业,还有几题,请高手帮一下忙.
答:10.C语言规定,简单变量做实参时,它和对应形参之间的数据传递方式是?A. 地址传递 B. 单向值传递 C. 双向值传递。即由实参传给形参,再由形参传回给实参 D. 由用户指定传递方式 答案:(B)11.在C语言中,下面对函数不正确的描述是?A. 当用数组名作形参时,形参数组值的改变可以使实参数组 B...

现代汉语、语言学的题目求解答(求高手,非常感谢!)
答:很字后面应该跟形容词或副词,这是将一些名词用作形容词,但是我举的例子中也有很多是这个词本身既可以做名词又可以做形容词的 5.请结合下列语料,分析出“一定”与“必须”的联系区别 a.你们放心,到学校以后,我一定常给你们写信。自己的主观承诺 b.这件事他不想找别人帮忙,一定要自己解决。第三...

一个关于英语语言的问题,英语高手帮帮忙
答:一般不会出现你说的这种情况吧,除非你是在做题,故意考你 如果这个单词你是认识的,就更容易了,完全可以根据语境来判断它是用的哪种意思,比如china,到底是指中国还是瓷器,比如character,到底是指文字还是性格,根据语境并不难判断。学习英语积累词汇是最重要的,希望我的建议对你有所帮助 ...

C语言的题目,谁帮忙做下,谢谢,
答:6、A 7、C 8、D 9、D 10、C 二、1、1 2、3 1 2 3、1 4、-60 三、1、0 2、1 3、1 4、0 5、1 四、1、字符常量只能表示一个字符,而字符串常量可以表示一个字符串,多个字符,而且字符串常量有‘/0’作为字符串结束标志。2、C语言中用‘1’和‘0’表示真和假,五...

麻烦高手帮忙做下C语言题目~~!!谢谢了
答:先给你救急。这两个题都不难。Good luck!第二题答案送上:include "stdio.h"include "conio.h"main(){ int upper=0,lower=0,digit=0,other=0,i=0;char *p,s[80];printf("\nInput a string:");while ((s[i]=getchar())!='\n') i++;p=s;while(*p!='\n'){if((*p>='A...

汇编语言的几个题目,求高手帮忙做一做,急急的..
答:我昨天回答了,今天看没有了!郁闷啊 !重新来:1.操作数不能同为内存寻址,所以用寄存器传 mov al,data1+4;取第一个数据(dw用ax)xchg al,data+5;交换数据 2.and cl,f0h; 保留高四位 and al,0fh; 保留低四位 add cl,al 3.data segment y1 db 1 y2 db 0 y3 db - buffer db ...

英语口语试题,需要每个问题有2-3分钟的回答,哪个高手帮忙一下?
答:4.宜家告诉你一下你的爱好?或者您喜欢什么做你的课余时间?5.吸取人民曾经用书信来?他们怎么使用吗?以何种方式函授,你认为将成为最流行,在不久的将来?为什么?6.你是一个体育迷?什么运动你最喜欢?7.告诉一下你和你的家人。8.宜家可以一个学生成为一个成功的语言学习者?9.你能告诉我一些片...

C语言的问题 高手们请进 帮帮忙 谢谢
答:printf("不想做了,退出!!\n");break;default:printf("输入错误,请重新输入!!\n");i--;break;} if (s==5)break;} if(s!=5){ printf("\n\n 刚刚做的题目如下,请再次检查! \n");for(i=0;i<10;i++)printf("%d%c%d=%d\n",a[i][0],a[i][1],a[i][2],a[i]...