Can the compiler assume that malloc will never return NULL?
In this video it is mentioned that the compiler can assume that malloc never returns NULL and is allowed to optimize accordingly. I have never heard of this and couldn’t find any reference to it in the C-Standard. Can anyone tell me if this is true and if so, where this behaviour is specified? The… Read More Can the compiler assume that malloc will never return NULL?