10.15sizeof用法

sizeof(int)等于4,因为int是4字节的
sizeof(c)等于7*4,因为它包含了7个int型元素
i<sizeof(c)/sizeof(int)等于7,实际就是计算c中有多少个元素

原文地址:https://www.cnblogs.com/xiebiandreamhigh/p/3371159.html