文章分类 - 技术文章
摘要: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
阅读全文
浙公网安备 33010602011771号