printf("%i",2+'5'-'0'); //2
'5'的ascii码是53,减去‘0’的ascii码48,刚好是5。
printf("%c",'5'+2); //7
posted on 2012-02-22 01:44 pengyingh 阅读(146) 评论(0) 收藏 举报