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
点击查看答案
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
点击查看答案
3.下面标识符中合法的用户标识符为______。
A. P#Ad
B. 12a
C. char
D. _int
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7e40-c044-ce3414c8e900.html
点击查看答案
23.下列程序输出的结果为______。
#include
#define M( ) x*(x+1)
void main( )
{
int a=2,b=3;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-fb40-c044-ce3414c8e900.html
点击查看答案
11.设有int a=1,b=2,c;,则执行c=( );后c的值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-87e0-c044-ce3414c8e900.html
点击查看答案
7.以下程序段的输出结果是______。
char c1='b',c2='C';
printf("%d,%c\n",c1-32,c2+32);
A. 66,C
B. 66,c
C. 98,C
D. 98,c
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8010-c044-ce3414c8e901.html
点击查看答案
22.有以下程序段:
int a[10]={1,2,3,4,5,6,7,8,9,10};
int *p=&a[3],b=p[5];
b的值是____。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4960-c044-ce3414c8e901.html
点击查看答案
11.设有int a=2,b=3,c=4,d;,则执行d=(a>0?b:c);后d的值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-dfe8-c044-ce3414c8e901.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
点击查看答案
17.设有char s[2][10]={"12","34"};,则数组s占用______个字节。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-43a8-c044-ce3414c8e901.html
点击查看答案