点击(此处)折叠或打开
#include<stdio.h> typedef int (*fun)(int); int fun1(int i) { return 0; } int fun2(int i) { fun fd[2] = {fun1,fun2}; return i+fd[!!i](i-1); } int main() { printf("%d\n",fun2(100)); return 0; } 运行结果: 5050 程序目的:求1+2+3+...+100 <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> 阅读(282) | 评论(0) | 转发(0) | 0上一篇:select poll epoll的区别
下一篇:linux iostat命令
相关热门文章 test123编写安全代码——小心有符号数...使用openssl api进行加密解密...一段自己打印自己的c程序...彻底搞定C语言指针详解-完整版... 给主人留下些什么吧!~~ 评论热议