APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
21.若有int m=5,n,*p1=&m,*p2=&n;,能将5赋值给n的是______。

A、  p2=*p1;

B、  *p1=*p2;

C、  p2=p1;

D、  *p2=*p1;

答案:D

c语言冲就完事了家人们
9.以下程序段输出结果是______。
int x=0x61;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e900.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
点击查看题目
12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3bd8-c044-ce3414c8e900.html
点击查看题目
1.C源程序中不能表示的数制是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d048-c044-ce3414c8e900.html
点击查看题目
20.执行以下程序后,输出结果是______。
#include
void fun( )
{
printf( );
a=30; b=40;
}
void main( )
{
int x=10, y=20;
fun( );
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-f370-c044-ce3414c8e900.html
点击查看题目
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看题目
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看题目
5.设有定义:int b=0;,表达式______与其它表达式的值不相同。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8228-c044-ce3414c8e900.html
点击查看题目
4.表达式 ( )( )9/2)-9%2的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看题目
1.以下叙述正确的是_______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-c6a8-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

21.若有int m=5,n,*p1=&m,*p2=&n;,能将5赋值给n的是______。

A、  p2=*p1;

B、  *p1=*p2;

C、  p2=p1;

D、  *p2=*p1;

答案:D

c语言冲就完事了家人们
相关题目
9.以下程序段输出结果是______。
int x=0x61;
printf( );

A.   61

B.   'a'

C.   97

D.   96

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e900.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
点击查看答案
12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );

A.   2次

B.   1次

C.   0次

D.   无限次

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3bd8-c044-ce3414c8e900.html
点击查看答案
1.C源程序中不能表示的数制是______。

A.  二进制

B.  十六进制

C.  十进制

D.  八进制

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

A.   10, 20 30, 40

B.   0, 0, 30 40

C.   0, 0, 10 20

D.   10, 20 10, 20

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-f370-c044-ce3414c8e900.html
点击查看答案
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。

A.   a++;

B.   b++;

C.   c++;

D.   d++;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看答案
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。

A.   7,10

B.   8,10

C.   7,11

D.   8,11

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看答案
5.设有定义:int b=0;,表达式______与其它表达式的值不相同。

A.   b+=1

B.   b++

C.   ++b

D.   b+1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8228-c044-ce3414c8e900.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
点击查看答案
1.以下叙述正确的是_______。

A.   在C程序中,main函数必须位于程序的最前面

B.   C语言本身没有输入输出语句

C.   C语言的每一行中只能写一条语句

D.   在对一个C语言程序进行编译的过程中,可发现注释中的拼写错误

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