试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(

A、  64

B、  81

C、  89

D、  289

答案:D

试题通
c语言冲就完事了家人们
试题通
9.有定义:float x=3.345;,执行语句printf("%.2f\n",x);后,屏幕输出结果是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e901.html
点击查看题目
22.若有int x[10],*p=x;,则*(p+6)表示______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9f50-c044-ce3414c8e901.html
点击查看题目
16.设有定义:int a[3][3]={{1},{2}},b[3][3]={1,2};,则执行语句printf("%d",a[1][0]+b[0][0]);后,输出的结果是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-43a8-c044-ce3414c8e900.html
点击查看题目
13.执行以下程序段后,输出的结果是______。
int a=0;
do
{
a=a+2;
}while(a!=2);
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-c044-ce3414c8e900.html
点击查看题目
4.表达式 ( )( )9/2)-9%2的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看题目
3.下面用户标识符中合法的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.html
点击查看题目
23.执行以下程序后,输出结果是______。
#include "stdio.h"
#define FUN( ) ( )<( )?( ):( )
void main()
{
int i=10,j=15,k;
k=10*FUN( );
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e902.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
点击查看题目
12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3bd8-c044-ce3414c8e900.html
点击查看题目
7.下列表达式中,______满足“当x为偶数时值为真,为奇数时值为假”的要求。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2e08-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(

A、  64

B、  81

C、  89

D、  289

答案:D

试题通
试题通
c语言冲就完事了家人们
相关题目
9.有定义:float x=3.345;,执行语句printf("%.2f\n",x);后,屏幕输出结果是______。

A.   3.345

B.   3.345000

C.   3.34

D.   3.35

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e901.html
点击查看答案
22.若有int x[10],*p=x;,则*(p+6)表示______。

A.   数组元素x[6]的地址

B.   数组元素x[6]的值

C.   数组元素x[7]的地址

D.   数组元素x[7]的值

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9f50-c044-ce3414c8e901.html
点击查看答案
16.设有定义:int a[3][3]={{1},{2}},b[3][3]={1,2};,则执行语句printf("%d",a[1][0]+b[0][0]);后,输出的结果是______。

A.   0

B.   1

C.   2

D.   3

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-43a8-c044-ce3414c8e900.html
点击查看答案
13.执行以下程序段后,输出的结果是______。
int a=0;
do
{
a=a+2;
}while(a!=2);
printf( );

A.   0

B.   2

C.   4

D.   6

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-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
点击查看答案
3.下面用户标识符中合法的是______。

A.   iPhone#

B.   13a

C.   char

D.   _int

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.html
点击查看答案
23.执行以下程序后,输出结果是______。
#include "stdio.h"
#define FUN( ) ( )<( )?( ):( )
void main()
{
int i=10,j=15,k;
k=10*FUN( );
printf( );
}

A.   10

B.   15

C.   100

D.   150

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e902.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
点击查看答案
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
点击查看答案
7.下列表达式中,______满足“当x为偶数时值为真,为奇数时值为假”的要求。

A.   x%2==0

B.   x%2==1

C.   x%2!=0

D.   x%2

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