面试题

http://www.cnblogs.com/fangyukuan/archive/2010/09/18/1829871.html 1.求下面函数的返回值( 微软) int func(x) { int countx =0; while(x) { countx ++; x = x&(x-1); } return countx; } 假定x = 9999。 答案:8 思路:将x转化为2进制,看含有的1的个数。 什么是“引用”?申明和使用“引用”要注意哪些问题? 答:引用就是某个目标变量的“别名”(alias),对应用的操作与对变量直接操作效果完全相同。...
函数 | 2014-06-08 18:07 | 阅读 1900 次 | 评论 0 条

关于PROC* C

http://baike.baidu.com/picture/470210/470210/0/7c1ed21b0ef41bd53f389cd953da81cb39db3db7?fr=lemma&ct=single#aid=0&pic=7c1ed21b0ef41bd53f389cd953da81cb39db3db7
函数 | 2014-06-03 15:10 | 阅读 1145 次 | 评论 0 条
浏览6142次
文章分类
最新评论