C语言题库
提供C语言相关考试试题、历年真题、模拟试题和答案解析,支持在线查看与练习。
科目:
全部
最新收录试题
单选题
C语言
下列选项中,能够满足“若字符串s1不等于字符串s2,则执行ST”要求的是 ( )
2018-02-01
收藏 0 次
单选题
C语言
库函数strcpy用以复制字符串.若有定义和语句:
char str1[ ]=“string”, str2[8], *str3, *str4=“string”;
则以下
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{ int i;
char *alpha[6]={"ABCD","EFGH",
2018-02-01
收藏 0 次
单选题
C语言
有以下程序
#include <stdio.h>
#include <string.h>
char a[20]=”ABCD\0EFG\0”,b[]=”IJK
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{char ch[3][5]={"6937","8254",”1234”},*
2018-02-01
收藏 0 次
单选题
C语言
设有定义语句:
char aa[2]={ “abcd”, ”ABCD” },*ap=aa;
则以下叙述中正确的是
2018-02-01
收藏 0 次
单选题
C语言
若有定义和语句:
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<
2018-02-01
收藏 0 次
单选题
C语言
若已定义:
int a[4][3]={1,2,3,4,5,6,7,8,9,10,11,12},(*prt)[3]=a,*p=a[0];
则不能够正确表示数组元素a[1]
2018-02-01
收藏 0 次
单选题
C语言
若有定义:int c[4][5],(*cp)[5];和语句cp=c;则能正确引用c数组元素的是( )
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
void fun(int *s,int n1,int n2)
{int i,j,t;
i=n1; j=n
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{int a[ ]={1,2,3,4,5,6,7,8,9,0},*p;
&nb
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
int f(int b[ ],int n)
{int i,r=1;
for(i=0;i<=n;i++) r=r
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{int a[ ]={1,3,5,7},*p=a,i;
for(i=0;i&l
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{int a[ ]={1,3,5,7,9},y=1,x,*p;
p
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{int n[5]={0},i,j,k=5;
for(i=0;i<k;i
2018-02-01
收藏 0 次
单选题
C语言
有以下程序:
#include <stdio.h>
main( )
{int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a;
2018-02-01
收藏 0 次
单选题
C语言
以下程序段给数组所有元素输入数据:
#include <stdio.h>
main( )
{int a[12],i=0;
while (i<
2018-02-01
收藏 0 次
单选题
C语言
若已定义:
int a[ ]={0,1,2,3,4,5,6,7,8,9},*p=a,i;
其中0<=i<=9,则a数组元素引用不正确的是
2018-02-01
收藏 0 次
单选题
C语言
以下程序的输出结果是.
#include <stdio.h>
int ast(int x,int y,int *cp,int *dp)
{*cp=x+y; *dp=x-
2018-02-01
收藏 0 次
单选题
C语言
若有以下程序
#include <stdio.h>
main( )
{int **k,*a,b=1000;
a=&b;k=&a
2018-02-01
收藏 0 次