Dotcpp   >   练题 - 第204页

全部知识点

第4061题

设有定义:

int k=0;

以下选项的四个表达式中与其他三个表达式的值不相同的是
()。

第4062题

设变量均已正确定义并且赋值,以下与其他三组输出结构不同的一组语句是()。

第4063题

有以下程序:

#include<stdio.h>
main()
{
int x=010,y=10;
printf("%d,%d\n",++x,y--);
}

程序运行后的输出结果是()。

第4064题

有以下程序:

#include <stdio.h>
main()
{
int i,j,k,a=5,b=6;
i=(a==b)?++a:--b;
j=a++;k=b;printf("%d,%d,%d\n",i,j,k);
}

程序的运行结果是()。

第4065题

有以下程序:

#include<stdio.h>
main()
{
int a;
scanf("%d",&a);
if(a++<9)printf("%d\n",a);
else printf("%d\n",a--);
}

程序运行时键盘输入9<回车>,则输出的结果是()。

第4066题

有以下程序:

#include<stdio.h>
main()
{
int a=1,b=0;
if(--a) b++;
else if(a==0) b+=2;
else b+=3;
printf("%d\n",b);
}

程序运行后的输出结果是()。

第4067题

有以下程序:

#include <stdio.h>
main()
{
int a=7;
while(a--);
printf("%d\n", a);
}

程序运行后的输出结果是()。

第4068题

有以下程序:

#include <stdio.h>
main()
{
int a=1,b=1;
while(a--)
b--;
printf("%d,%d\n", a,b);
}

程序的运行结果是()。

第4069题

有以下程序

#include <stdio.h>
main()
{
int x,y,z;
x=y=1;
z=x++,y++,++y;
printf("%d,%d,%d\n",x,y,z);
}

程序运行后的输出结果是()。

第4070题

以下程序段中的变量已定义为int类型,则

sum=pAd=5;
pAd=sum++,++pAd,pAd++;
printf("%d\n",pAd);

程序段的输出结果是()。

第4071题

有以下程序

#include<stdio.h>
main()
{
int sum,pad,pAd;
sum=pad=5;
pAd=++sum,pAd++,++pad;
printf("%d\n",pad);
}

程序的输出结果是()。

第4072题

有以下程序

#include <stdio.h>
main()
{
int i;
for(i=1;i<=40;i++)
{
if(i++%5==0)
if(++i%8==0)printf("%d",i);
}
printf("\n");
}

执行后的输出结果是()。

第4073题

有如下程序:

#include <stdio.h>
main()
{
int a =0,b=1;
if(++a==b++)
printf("T");
else
printf("F");
printf("a=%d,b=%d\n",a,b);
printf("\n");
}

程序运行后的输出结果是()。

第4074题

如下程序:

#include <stdio.h>
main()
{
int a =0,b=1;
if(a++&&b++)
printf("T");
else
printf("F");
printf("a=%d,b=%d\n",a,b);
printf("\n");
}

程序运行后的输出结果是()。

第4075题

以下叙述中正确的是( )。

第4076题

以下叙述中正确的是( )。

第4077题

以下能正确输出字符a的语句是( )。

第4078题

以下不能输出字符A的语句是( )。(注:字符A的ASCII码值 为65,字符a的ASCII码值为97。)

第4079题

设有定义:

double x=2.12;

以下不能完整输出变量x值的语句是 ( )。

第4080题

有以下程序: 

#include <stdio.h>
main()
{
 int k=10;
 printf("%4d,%o,%x\n",k,k,k);
}

程序的运行结果是( )。(u代表一个空格)