posts - 570,  comments - 96,  views - 171万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
09 2021 档案
c语言变长数组VLA的变通实现
摘要:c语言中近年出了重要新规范,C99,C11,其中C99提出了变长数组VLA,然后在C11中变成一个非必须实现的特性。 由于Visual Studio/VC不支持变成数组VLA,于是有了这篇文章。 malloc版本代码 /* vla1.c -- 使用malloc函数模拟动态数组*/ #include 阅读全文
posted @ 2021-09-27 11:18 你不知道的浪漫 阅读(507) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示