Is it a good idea to use C99 VLA compared to malloc/free?

后端 未结 6 731
旧时难觅i
旧时难觅i 2020-11-28 11:26

Is it a good idea to use C99 VLA? When is it appropriate to use VLA compared to malloc/free? (since VLA may blow up stack?)

6条回答
  •  执笔经年
    2020-11-28 11:45

    For a good list of C99-related links (including links to information about variable-length arrays) see:

    Xcode now defaults to use C99 - so what's C99?

    http://lists.apple.com/archives/xcode-users/2008/May/msg00665.html

提交回复
热议问题