柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
下列叙述中正确的是( )。
A.循环队列中的元素个数随队头指针与队尾指针的变化而动态变化
B.循环队列中的元素个数随队头指针的变化而动态变化
C.循环队列中的元素个数随队尾指针的变化而动态变化
D.以上说法都不对
热度🔥168
参考答案:A
解析:
在循环队列中,队头指针和队尾指针都是动态变化的,所以循环队列中的元素个数由队头指针和队尾指针共同决定。故本题答案为A。
复制题目向AI提问
content_copy
content_copy
扫码免费计算机二级刷题
2025年计算机等级考试题库
推荐
在报表中,不能实现的功能是
有以下程序 #include int funa( int a, intB){ return a+b; } int funb( int a, intB){ return a-b; } int sss( int (*t)(), int x, int y ) { return( (*t)(x,y) ); } main() { int x; x=sss( funa, 9,3 ); x+=sss(funb,8,3 ); printf("%d\n", x ); } 程序运行后的输出结果是
以下叙述中正确的是
有以下程序 #include struct STU{ char name[9]; char sex; int score[2]; } ; void f( struct STU a[] ) { struct STU b = {"Zhao", 'm', 85, 90}; a[1] = b; } main() { struct STU c[2]={ {"Qian", 'f', 95, 92}, {"Sun", 'm', 98, 99} }; f(c); printf( "%s,%c,%d,%d,", c[0].name, c[0].sex, c[0].score[0], c[0].score[1] ); printf( "%s,%c,%d,%d\n", c[1].name, c[1].sex, c[1].score[0], c[1].score[1] ); } 程序运行后输出结果是
下列关于I/O设备的叙述中,哪一个是正确的?
标签
计算机二级Office
指针
变化
队列
循环