HackerTrans
トップ新着トレンドコメント過去質問紹介求人

pascal_cuoq

no profile record

コメント

pascal_cuoq
·10 年前·議論
Because malloc() can signal failure to allocate by returning a null pointer.

VLAs make it impossible to handle a failure to allocate: there is no interface to indicate what the program should do when it happens. You can only follow the declaration of a VLA with code that assumes that the allocation succeeded.