GLORY | 学习·记录

coding for life

printf的返回值

 1 #include<stdio.h>
 2 
 3 int main()
 4 {
 5     int i=43;
 6     printf("%d",printf("%d",printf("%d",i)));
 7     
 8     return 0;
 9 }
10 
11 这是一个社区的验证码,让输出结果,很有意思。
12 结果是4321.
13 printf()的返回值:On success, the total number of characters written is returned.
14 On failure, a negative number is returned.

posted on 2010-12-23 11:39 meglory 阅读(330) 评论(0)  编辑 收藏 引用 所属分类: C/C++


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

随笔分类

随笔档案

最新评论