HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pascal_cuoq

no profile record

comments

pascal_cuoq
·10 tahun yang lalu·discuss
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.