技巧-C语言

it2022-05-05  148

1、sizeof()

sizeof(数组名),计算的是数组的容量,数组类型(e.g.int)所占字节*数组中元素个数。

 

参考资料

1、https://blog.csdn.net/ljob2006/article/details/4872167

转载于:https://www.cnblogs.com/aeron99/p/11120748.html

相关资源:10年经验总结四大编程技巧(C语言)

最新回复(0)