摘要: sizeof与strlen是有着本质的区别,sizeof是求数据类型所占的空间大小,而strlen是求字符串的长度,字符串以/0结尾。按《the C PROGRAMMING LANGUAGE》P135: C provides a complie-time unary operator called sizeof that can be used to compute the size of any object,the expressions sizeof object and sizeof(type name) yield an integer equal to the size of th 阅读全文
posted @ 2014-03-14 08:16 cnsealine 阅读(228) 评论(0) 推荐(0)