计算机二级题库
提供计算机二级相关考试试题、历年真题、模拟试题和答案解析,支持在线查看与练习。
最新收录试题
单选题
计算机二级
有以下程序
#include<stdio.h>
#define PT 3.5;
#define S(x) PT*x*x;
main( )
{int a=l,b=2
2015-06-11
收藏 0 次
单选题
计算机二级
#include<stdio.h>
f(int a)
{
int b=0;
static int c=3;
a=c++,b++;return(a);
}
main()
2015-06-11
收藏 0 次
单选题
计算机二级
C语言中默认的存储类说明是( )
2015-06-11
收藏 0 次
单选题
计算机二级
下面哪一个定义,变量是放在寄存器里的( )
2015-06-11
收藏 0 次
单选题
计算机二级
在一个C语言源程序文件中所定义的全局变量,其作用域为( )
2015-06-11
收藏 0 次
单选题
计算机二级
外部变量对程序中的任一函数而言,它们是( )
2015-06-11
收藏 0 次
单选题
计算机二级
请在函数fun的横线上应填写下面选项那个语句式,使从键盘上输入一个整数n,输出斐波数列,如:0 1 1 2 3 5 8 13………
#include <stdio.h>
2015-06-11
收藏 0 次
单选题
计算机二级
如果有以下说明和定义:
#include<stdio.h>
main()
.{
int(*a)(int *),*b(),w[10],c
……
}
int fun(in
2015-06-11
收藏 0 次
单选题
计算机二级
以下叙述那个是不正确的( )
2015-06-11
收藏 0 次
单选题
计算机二级
#include<stdio.h>
int f(int x,int y)
{return ((y-x)*x);}
main()
{ int a=3,b=4,c=5,d;
2015-06-11
收藏 0 次
单选题
计算机二级
#include <stdio.h>
fun(int x)
{ if(x/2>0) fun(x/2);
printf(“%d ”,x);
}
main()
{
2015-06-11
收藏 0 次
单选题
计算机二级
下列选项中,能够满足“若字符串s1等于字符串s2,则执行ST”要求的是 ( )
2015-06-11
收藏 0 次
单选题
计算机二级
库函数strcpy用以复制字符串.若有定义和语句:
char str1[ ]=“string”, str2[8], *str3, *str4=“string”;
则以下对库函数s
2015-06-11
收藏 0 次
单选题
计算机二级
有以下程序:
#include <stdio.h>
main()
{char *alpha[6]={"ABCD","EFGH",
2015-06-11
收藏 0 次
单选题
计算机二级
有以下程序
#include <stdio.h>
#include <string.h>
main( )
{char a[20]=”ABCD\0EFG
2015-06-11
收藏 0 次
单选题
计算机二级
有以下程序:
#include <stdio.h>
main()
{char ch[2][5]={"6937","8254"},
2015-06-11
收藏 0 次
单选题
计算机二级
设有定义语句:
char *aa[2]={ “abcd”, ”ABCD” };
则以下叙述中正确的是( )
2015-06-11
收藏 0 次
单选题
计算机二级
若有定义和语句:
int a[4][3]={1,2,3,4,5,6,7,8,9,10,11,12},(*ptr)[3]=a,*p[4],i;
for(i=0;i<4;i++
2015-06-11
收藏 0 次
单选题
计算机二级
若已定义:
int a[4][3]={1,2,3,4,5,6,7,8,9,10,11,12},(*prt)[3]=a,*p=a[0];
则能够正确表示数组元素a[1][2]的表达
2015-06-11
收藏 0 次
单选题
计算机二级
若有定义:int c[4][5],(*cp)[5];和语句cp=c;则能正确引用c数组元素的是( )
2015-06-11
收藏 0 次