文章分类 -  技术文章

摘要:1、什么是sizeof 首先看一下sizeof在msdn上的定义: The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (including aggregate types). This keyword returns a value of type size_t. 不过sizeof 可不是一个函数,sizeof更像一个特殊的宏,它是在编译阶段求值的。举个例子: coutusing namespace std;int Sum(int i[]){int sum 阅读全文
posted @ 2014-03-07 16:35 王伟挺 阅读(80) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2012-08-05 18:07 王伟挺