...
By ommiting the explicit cast to a pointer the compiler will realise that an int
is attempting to be assigned to a pointer type and will generate a warning which may easily be corrected.
Code Block |
---|
#include <stdlib.h>
...
char *p = malloc(10);
|
References
...