首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。
设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。
admin
2010-06-06
23
问题
设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。
选项
A、front=front+1
B、front=(front+1)%(m-1)
C、front=(front-1)%m
D、front=(front+1)%m
答案
D
解析
设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为front=(front+1)%m。
转载请注明原文地址:https://kaotiyun.com/show/W5jp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序#includetypedefstruct{intb,p;}A;voidf(Ac)/*注意:c是结构变量名*/{intj;c.b+=1;c.p+=2;}main(){inti;Aa={1
设有语句:printi(“%2(1\n”,2010);,则以下叙述正确的是()。
以下叙述中错误的是()。
软件调试的目的是()。
某系统总体结构图如下图所示:该系统总体结构图的深度是()。
以下程序依次把从终端输入的字符存放到f文件中,用“#”作为结束输入的标志,则在横线处应填入的选项是()。#includemain(){FILE*fp;charch;fp=fopen("fname","w")
有以下程序#include<stdio.h>doublefun1(doublea[],intn){inti;doublesum=0.0;for(i=0;i<n;i++)sum+=a[i]/n;returnsum;}voidf
设有定义语句:doublex=123.456:则语句printf("%6.2f,%3.0f\n",x,x);的输出结果是()。
关于分支语句if(E)printf(’’%d\n’’,k);中,不可以替代E的表达式是()。
下列关于栈和队列的描述中,正确的是()。
随机试题
药物经济学的主要任务是
患者,男,45岁。低热,午后热甚,胸闷,周身困重,纳呆脘痞,口干不欲饮,呕恶,大便黏滞不爽,舌苔黄腻,脉濡数。其中医诊断为
其直者,从巅入络脑人脑,上巅,循额,至鼻柱
某患者,突然发生寒战、高热、咳嗽、咳痰,痰呈砖红色胶冻状,最可能感染的病原菌是()
甲、乙因合同纠纷申请仲裁,甲、乙各选定一名仲裁员,首席仲裁员由甲、乙共同选定。仲裁庭合议时产生了三种不同意见,仲裁庭应当()作出裁决。
下列各项中,契税的计税依据可由征收机关核定的是()。
从所给的四个选项中,选择最合适的一个填入问号处,使之呈现一定的规律性:
A、Itisansimpleexplosive.B、Itisamilitaryexplosive.C、ItismadeinU.S.factories.D、Itcanbeeasilymadeindoors.D
Undermorefavorableconditions,he______agreatgeneralbutheonlyendedupascaptain.
Expertsinthefoodindustryarethinkingalotabouttrashthesedays.Restaurants,colleges,hospitalsandotherinstitutions
最新回复
(
0
)