试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
2.下列定义语句中,正确的是_______。

A、  char a='A' b='B';

B、  float a=b=6.5;

C、  double x=3.4;

D、  int x==y=8;

答案:C

试题通
c语言冲就完事了家人们
试题通
8.设有int a=3,b=4;,以下不合法的C语言语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3408-c044-ce3414c8e900.html
点击查看题目
19函数的形式参数的作用域是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4790-c044-ce3414c8e900.html
点击查看题目
3.按照C语言规定的用户标识符命名规则,不能出现在标识符中的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e900.html
点击查看题目
11.执行以下程序段后,输出的结果是______。
int x=2,y=0;
switch( )
{
case 2: x++;y=x+1;
case 1: y=y+1;break;
default:x++;y=y+1;
}
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e902.html
点击查看题目
16.以下对二维数组b的定义,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看题目
4.设有定义:int k=0;,以下选项的四个表达式中,与其他三个表达式的值不相同的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e901.html
点击查看题目
4.表达式 ( )( )9/2)-9%2的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看题目
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e900.html
点击查看题目
14.执行以下程序段后,输出的结果是______。
int x=1;
while(1)
{
if(x==6) break;
x++;
}
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e901.html
点击查看题目
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

2.下列定义语句中,正确的是_______。

A、  char a='A' b='B';

B、  float a=b=6.5;

C、  double x=3.4;

D、  int x==y=8;

答案:C

试题通
试题通
c语言冲就完事了家人们
相关题目
8.设有int a=3,b=4;,以下不合法的C语言语句是______。

A.   a=b==4;

B.   a=b%3.5;

C.   a=b=4;

D.   a+=a+3;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3408-c044-ce3414c8e900.html
点击查看答案
19函数的形式参数的作用域是______。

A.   本函数的全部范围

B.   本程序的全部范围

C.   本文件的全部范围

D.   从定义开始至本文件结束

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4790-c044-ce3414c8e900.html
点击查看答案
3.按照C语言规定的用户标识符命名规则,不能出现在标识符中的是______。

A.  大写字母

B.  下划线

C.  数字字符

D.  连接符

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e900.html
点击查看答案
11.执行以下程序段后,输出的结果是______。
int x=2,y=0;
switch( )
{
case 2: x++;y=x+1;
case 1: y=y+1;break;
default:x++;y=y+1;
}
printf( );

A.   3,5

B.   3,4

C.   2,0

D.   3,1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e902.html
点击查看答案
16.以下对二维数组b的定义,正确的是______。

A.   int b[3..4];

B.   int b(3,4);

C.   int b[3][4];

D.   int b(3..4);

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看答案
4.设有定义:int k=0;,以下选项的四个表达式中,与其他三个表达式的值不相同的是______。

A.   ++k

B.   k++

C.   k+1

D.   k+=1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e901.html
点击查看答案
4.表达式 ( )( )9/2)-9%2的值是______。

A.   5

B.   4

C.   0

D.   3

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看答案
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(

A.   64

B.   81

C.   89

D.   289

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e900.html
点击查看答案
14.执行以下程序段后,输出的结果是______。
int x=1;
while(1)
{
if(x==6) break;
x++;
}
printf( );

A.   5

B.   6

C.   1

D.   7

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e901.html
点击查看答案
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );

A.   3,11

B.   3,10

C.   3,4

D.   1,2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看答案
试题通小程序
试题通app下载