APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );

A、  TRUEFALSE

B、  FALSETRUE

C、  TRUE

D、  FALSE

答案:C

c语言冲就完事了家人们
3.下面标识符中合法的用户标识符为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7e40-c044-ce3414c8e900.html
点击查看题目
10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-89f8-c044-ce3414c8e901.html
点击查看题目
23.设有:
#define ADD( ) x+y
则语句
printf("s=%d", 5*ADD(4,3));
的输出结果是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e901.html
点击查看题目
12.设n为整型变量,执行语句for(n=1;n++<4;);后,变量n的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e901.html
点击查看题目
20.执行以下程序后,输出结果是______。
#include
void fun( )
{
a=23; b=56;
}
void main( )
{
int x=10, y=20;
fun( );
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4578-c044-ce3414c8e901.html
点击查看题目
12.执行下列程序后,输出的结果是______。
#include
void main( )
{
int i,s=0;
for(i=1;i<10;i+=2)
s+=i+1;
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e900.html
点击查看题目
19.C语言中,系统默认全局变量为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4578-c044-ce3414c8e900.html
点击查看题目
18.下列关于函数的叙述中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9780-c044-ce3414c8e900.html
点击查看题目
7.设有char a='0'; int b;,执行语句b=a+2;后,正确的描述是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d818-c044-ce3414c8e901.html
点击查看题目
15.以下不能对一维数组a进行正确定义及初始化的语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-95b0-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );

A、  TRUEFALSE

B、  FALSETRUE

C、  TRUE

D、  FALSE

答案:C

c语言冲就完事了家人们
相关题目
3.下面标识符中合法的用户标识符为______。

A.   P#Ad

B.   12a

C.   char

D.   _int

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7e40-c044-ce3414c8e900.html
点击查看答案
10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );

A.   TRUEFALSE

B.   FALSETRUE

C.   TRUE

D.   FALSE

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-89f8-c044-ce3414c8e901.html
点击查看答案
23.设有:
#define ADD( ) x+y
则语句
printf("s=%d", 5*ADD(4,3));
的输出结果是______。

A.   s=35

B.   s=12

C.   s=23

D.   s=17

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e901.html
点击查看答案
12.设n为整型变量,执行语句for(n=1;n++<4;);后,变量n的值是______。

A.   3

B.   4

C.   5

D.   6

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e901.html
点击查看答案
20.执行以下程序后,输出结果是______。
#include
void fun( )
{
a=23; b=56;
}
void main( )
{
int x=10, y=20;
fun( );
printf( );
}

A.   23,56

B.   56,23

C.   10,20

D.   20,10

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4578-c044-ce3414c8e901.html
点击查看答案
12.执行下列程序后,输出的结果是______。
#include
void main( )
{
int i,s=0;
for(i=1;i<10;i+=2)
s+=i+1;
printf( );
}

A.   s=30

B.   s=25

C.   s=55

D.   s=45

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e900.html
点击查看答案
19.C语言中,系统默认全局变量为______。

A.   自动(auto)类型

B.   寄存器(register)类型

C.   静态(static)类型

D.   外部(extern)类型

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4578-c044-ce3414c8e900.html
点击查看答案
18.下列关于函数的叙述中错误的是______。

A.   C语言函数包括标准库函数和用户自定义函数

B.   被调用的函数必须在main函数中声明

C.   函数不可以嵌套定义

D.   函数可以嵌套调用

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9780-c044-ce3414c8e900.html
点击查看答案
7.设有char a='0'; int b;,执行语句b=a+2;后,正确的描述是______。

A.   b的值变为字符型

B.   C语言不允许字符型和整型相加

C.   b的值是2

D.   b的值是字符'0'的ASCII码值加上2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d818-c044-ce3414c8e901.html
点击查看答案
15.以下不能对一维数组a进行正确定义及初始化的语句是______。

A.  int a[5]={ };

B.  int a[5]={1};

C.  int a[5]={1,2};

D.  int a[5]={1,2,3,4,5};

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-95b0-c044-ce3414c8e900.html
点击查看答案
试题通小程序
试题通app下载