caixia

导航

2011年10月11日 #

c/c++数组与sizeof的基础知识 (转载)

摘要: 转自:http://www.cppblog.com/bloodsuck/articles/7575.html1 、什么是 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. 看到 return 这个字眼,是不是想到了函数?错了, sizeof... 阅读全文

posted @ 2011-10-11 08:57 caixia 阅读(1972) 评论(0) 推荐(2) 编辑