APP下载
首页
>
文学知识
>
C语言程序设计题库
搜索
C语言程序设计题库
题目内容
(
填空题
)
3.只能在循环体中出现的语句是( )语句。

答案:空

C语言程序设计题库
19.已有预处理命令“#include”和声明“int x=4, y;”,下面语句中语法正确的是()。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-20e8-c003-bc7499099f01.html
点击查看题目
45.下面定义中错误的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-a600-c003-bc7499099f02.html
点击查看题目
20.C语言源程序中用十六进制表示整型常数必须以( )开头。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-30d0-c003-bc7499099f01.html
点击查看题目
8.已有定义“int r=3;”,则执行语句“printf( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-2130-c003-bc7499099f02.html
点击查看题目
7.函数 xtoi 的功能是将放在字符串中的十六进制数(可以出现'0'~'9'、'a'~'f')转换成十进制整数。例如:调用 xtoi("1f") 将返回31。
xtoi(( (18) ))
{ int k, d=0;
for(k=0; s[k] ==' ' || s[k] == '\t'; k++);
while(s[k] >='0' && s[k] <= '9' || s[k] >= 'a' && s[k] <= 'f')
{if (s[k] >= '0' && s[k] <= '9')
( (19) );
if ( )
( (20) );
k++;
}
return d;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f6-5cc0-c003-bc7499099f00.html
点击查看题目
11.B12.D13.C14.B15.C16.A17.D18.A
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f0-4a10-c003-bc7499099f01.html
点击查看题目
33.下面程序运行时输出的结果是()。
#include
#include
void fun( )
{ int i, j, len;
len=strlen( );
for(i=0, j=0; ch[i]; i++)
if(
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-e3a8-c003-bc7499099f00.html
点击查看题目
24.下面程序运行后的输出结果是________。
#include
#include
int count( )
{int k=0;
if(str[k]== '\0') return 0;
while(
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-b8b0-c003-bc7499099f00.html
点击查看题目
57.设有定义和声明如下:
#define d 2
int a=3; float b=3.14; char c='d';
下面表达式中有语法错误的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-c540-c003-bc7499099f01.html
点击查看题目
14.以下表示中,不能用作C语言常量的是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-57e0-c003-bc7499099f00.html
点击查看题目
首页
>
文学知识
>
C语言程序设计题库
题目内容
(
填空题
)
手机预览
C语言程序设计题库

3.只能在循环体中出现的语句是( )语句。

答案:空

分享
C语言程序设计题库
相关题目
19.已有预处理命令“#include”和声明“int x=4, y;”,下面语句中语法正确的是()。

A.  if(x%2=1)y=x;

B.  if(sqrt(x)%2)y=x;

C.  if(x==1)y=x;

D.  if(x==1)y=&x;

https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-20e8-c003-bc7499099f01.html
点击查看答案
45.下面定义中错误的是( )。

A.  int a=0xFF;

B.  double a=1.2e0.5;

C.  long a=2L;

D.  char a='\72';

https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-a600-c003-bc7499099f02.html
点击查看答案
20.C语言源程序中用十六进制表示整型常数必须以( )开头。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-30d0-c003-bc7499099f01.html
点击查看答案
8.已有定义“int r=3;”,则执行语句“printf( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-2130-c003-bc7499099f02.html
点击查看答案
7.函数 xtoi 的功能是将放在字符串中的十六进制数(可以出现'0'~'9'、'a'~'f')转换成十进制整数。例如:调用 xtoi("1f") 将返回31。
xtoi(( (18) ))
{ int k, d=0;
for(k=0; s[k] ==' ' || s[k] == '\t'; k++);
while(s[k] >='0' && s[k] <= '9' || s[k] >= 'a' && s[k] <= 'f')
{if (s[k] >= '0' && s[k] <= '9')
( (19) );
if ( )
( (20) );
k++;
}
return d;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f6-5cc0-c003-bc7499099f00.html
点击查看答案
11.B12.D13.C14.B15.C16.A17.D18.A
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f0-4a10-c003-bc7499099f01.html
点击查看答案
33.下面程序运行时输出的结果是()。
#include
#include
void fun( )
{ int i, j, len;
len=strlen( );
for(i=0, j=0; ch[i]; i++)
if(
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-e3a8-c003-bc7499099f00.html
点击查看答案
24.下面程序运行后的输出结果是________。
#include
#include
int count( )
{int k=0;
if(str[k]== '\0') return 0;
while(
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-b8b0-c003-bc7499099f00.html
点击查看答案
57.设有定义和声明如下:
#define d 2
int a=3; float b=3.14; char c='d';
下面表达式中有语法错误的是( )。

A.  a++

B.  b++

C.  c++

D.  d++

https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-c540-c003-bc7499099f01.html
点击查看答案
14.以下表示中,不能用作C语言常量的是( )。

A.  0UL

B.  (long)123

C.  1e0

D.  '\x2a'

https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-57e0-c003-bc7499099f00.html
点击查看答案
试题通小程序
试题通app下载