使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
#include <stdio.h>
void main()
{
int n=3;
printf("%d\n",(++n,n+=2,--n));}
(2) #include<stdio.h>
void main( )
int p[8]={1,2,3,4,5,6,7,8},i=0,j=0;
while(i++<6)
if(p[i]%2!=1) j+=p[i];
printf("%d\n",j);
}
#include<stdio.h>
void point(char *p)
{ p+=2; }
char b[4]={'a','b','c','d'},*p=b;
point(p);
printf("%c\n",*p);
#include <string.h>
char a[10]="abc",b[10]="012",c[10]="xyz";
strcpy(a+1,b+2);
puts(strcat(a,c+1)); }
程序运行后的输出结果是
int a=2;
int f(int n)
{ int t=0;
if(n%2){ static int a=4;t+=a++;
}else{
static int a=5;t+=a++;
return t;
{ int s=a,i;
for(i=0;i<3;i++)
s+=f(i);
printf("%d\n",s);
(10)
。
#include<string.h>
printf("%d\n",strlen("BMW\n\018\1\\"));}
(11)
int i=2,j=2,k=3;
if(i++==2&&(++j==3||k++==3))
printf("%d %d %d\n",i,j,k);
int a[3][3]={1,2,3,4,5,6,7,8,9},i,j,sum=0;
for(j=0;j<=i;j++)
sum=sum+a[i][j];
printf("%d\n",sum);
char c='3';
switch(c-'2')
case 0:
case 1:putchar(c+4);
case 2:putchar(c+4);break;
case 3:putchar(c+3);
default:putchar(c+2);
(14)
void swap(int *x,int *y)
int t;
t=*x;*x=*y;*y=t;
int a=5,b=6;
swap(&a,&b);
printf("%d %d\n",a,b);
char *s="abcde";
s+=1;
printf("%d\n",s[0]);
struct ord
{int x,y;}dt[2]={5,6,7,8};
struct ord *p=dt;
printf("%d,",++p->x);
printf("%d,",++p->y);
void prt(int *m,int n)
int i;
for(i=0;i<n;i++)
m[i]++;
void main( ){
int a[]={1,2,3,4,5},i;
prt(a,3);
for(i=0;i<2;i++)
printf("%d",a[i]);
int fun(char s[])
int n=0;
while(*s<='9'&&*s>='0')
n=10*n+*s-'0';
s++;
return(n);
char s[10]={'6','1','*','4','*','9','*','0','*'};
printf("%d\n",fun(s)); }
#define PT 3.5
#define S(x) PT*x*x;
main()
int a=1,b=2;
printf("%4.1f\n",S(a+b));
void change(int x,int y,int *z)
{ int t;
t=x;x=y;y=*z;*z=t;
{ int x=15,y=25,z=60;
change(x,y,&z);
printf(“x=%d,y=%d,z=%d\n”,x,y,z);