云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > C复习提纲

C复习提纲

  • 62 次阅读
  • 3 次下载
  • 2025/5/6 13:53:44

if(k==3) n++; } 输出结果为: printf(\ } 程序6

# include # include

void main() 运行时输入: 35dffe { char a, b, x; int i;

while(!isupper(x=getchar())); 输出结果: for(a=?a?; a<=x; a++)

{ for(b=?a?; b

# include

void prn(int a, int b, int c, int max, int min) { max=(max=a>b?a:b)>c?max:c; min=(min=a

void main() { int x, y;

x=y=0; prn(19, 23, -4, x, y); printf(\ }

输出结果为: 程序8

# include int f1(int, int), f11(int); void f2(int); void main() { int i, j; for(i=0; i<5; i++) { f2((5-i)*3);

for(j=0; j<=i; j++) printf(\ putchar(?\\?); } }

int f1(int m, int n)

{ return f11(m)/f11(n)/f11(m-n); }

int f11(int k) { if(k<=1) return 1; return k*f11(k-1); }

viod f2(int n)

{ for(int i=1; i<=n; i++) putchar(? ?); }

输出结果为: 程序9

# include int f(int m, int n) { if(m%n==0) return n; else return f(n, m%n); }

void main()

{ printf(\ }

输出结果为: 程序10

# include #define s x=y=z

#define p3(x, y, z) printf(\ void main() { int x, y, z;

s=1; ++x||++y||++z; p3(x, y, z); s=1; ++x&&++y||++z; p3(x, y, z); s=1; ++x&&++y&&++z; p3(x, y, z); s=-1; ++x||++y&&++z; p3(x, y, z); s=-1; ++x||++y||++z; p3(x, y, z); s=-1; ++x&&++y&&++z; p3(x, y, z); } 程序11

# include void main()

{ int m[]={1, 2, 3, 4, 5, 6, 7, 8, 9}, i, j, k; for(i=0; i<4; i++)

{ k=m; m=m[8-i]; m[8-i]=k; for(j=0; j<9; j++) 输出结果为: printf(\ putchar(?\\?);

} } 程序12

# include void main()

{ int x[4][4]={{1, 2, 3, 4}, {3, 4, 5, 6}, {5, 6, 7, 8},{7, 8, 9, 10}}, i, j; for(i=0; i<4; i++) for(j=0; j<4; j++) *(*(x+i)+j)/= *(*(x+i)+i); for(i=0; i<4; i++)

{ for(j=0; j<4; j++) printf(\ putchar(?\\?); } }

输出结果为: 程序13

# include # include void main()

{ char line[]=\输出结果: int i, k=strlen(line); for(i=0; i<4; i++)

{ lint[k-i]=?{post.content}?; puts(line+i); } } 程序14

# include # include void main()

{ char a[5][20]={\ int i, j;

for(i=0; i<4; i++) { j=0; while(a[j]) j++; strcat(*(a+i)+j,*(a+i+1)); }

for(i=0; i<4; i++) puts(*(a+i)); }

输出结果为:

程序15

# include # include void del_bk(char *p) { char *p1; p1=p;

while(*p1!=?{post.content}?)

if(*p1==? ?&&*(p1+1)==? ?) 输出结果: strcpy(p1, p1+1); else p++; }

void main()

{ char *aa=\

printf(\ } 程序16

# include void main()

{ struct t1 { char c[4], *s;} 输出结果为: s1={\

struct t2 { char *cp; struct t1 ss1;} s2={\ printf(\ printf(\ printf(\ printf(\ } 程序17

# include void main()

{ struct info {int data; struct info *pn;}; info base, p; base=null;

for(int i=0; i<10; i++)

{ p=(struct info*)malloc(sizeof(struct info)); p->data=i+1; p->pn=base; base=p; } p=base; while(p!=null)

{ printf(\ } printf(\ }

输出结果为: 程序18。

搜索更多关于: C复习提纲 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

if(k==3) n++; } 输出结果为: printf(\ } 程序6 # include # include void main() 运行时输入: 35dffe { char a, b, x; int i; while(!isupper(x=getchar())); 输出结果: for(a=?a?; a<=x; a++) { for(b=?a?; b

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com