| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 576 人关注过本帖
标题:关于C的理解
只看楼主 加入收藏
diannao123
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-4-24
收藏
 问题点数:0 回复次数:5 
关于C的理解

#include <stdio.h>

void main( ) { int a, b, c; b=5; c=5; a=++b+c--; printf("%d,%d,%d\n", a, b, c); a=b---c; printf("%d,%d,%d\n", a, b, c); a=-b+++c; printf("%d,%d,%d\n", a, b, c); } 那个告诉我怎么理解这程序啊

搜索更多相关主题的帖子: include 
2005-04-25 12:33
Rank: 1
等 级:新手上路
帖 子:255
专家分:0
注 册:2005-4-25
收藏
得分:0 
不是吧 你每一语句能读懂就明白了撒 要是语句都读不懂 还要理解程序干嘛?

/bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg');}" onmousewheel="return imgzoom(this);" alt="" /> 欢迎加入C语言QQ群698156 我们都是菜鸟乃至新手 坚信有一天定能展翅高飞 因为有着努力的决心 衷心盼望你的到来 让我们一起进步
2005-04-25 13:29
musicml
Rank: 1
等 级:新手上路
帖 子:273
专家分:0
注 册:2005-4-2
收藏
得分:0 

#include <stdio.h>

void main( ) { int a, b, c; b=5; c=5; a=++b+c--; printf("%d,%d,%d\n", a, b, c); a=b---c; printf("%d,%d,%d\n", a, b, c); a=-b+++c; printf("%d,%d,%d\n", a, b, c); }

11,6,4 2,5,4 -1,6,4


Every thing is possible.
2005-04-25 16:51
飞舞留香
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2005-4-18
收藏
得分:0 
高人一个!!
2005-04-25 19:36
牛虻
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2004-10-1
收藏
得分:0 
这种程序主要就是说明单目运算符比双目运算符的优先

[此贴子已经被作者于2005-4-26 14:11:24编辑过]



土冒
2005-04-26 14:10
lycnsc
Rank: 1
等 级:新手上路
帖 子:243
专家分:0
注 册:2005-3-27
收藏
得分:0 
谁编的?考人眼力啊!不看!
2005-04-26 15:29
快速回复:关于C的理解
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019571 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved