malloc casting - quote from the FAQ
This is a quote from the FAQ about casting malloc.
"Many still prefer to cast malloc because they feel it makes the intentions of the memory allocation more clear. There is nothing wrong with this except in the event that stdlib.h, the header which declares malloc, is not included. If the return of malloc is cast then the error which would be flagged is hidden"
I don't understand what can go wrong if I cast malloc return without using stdlib.h, until now I always cast it and I didn't use stdlib.h and everything always work fine, can someone please explain it to me?
Another thing, which one of the following is the preffered header file for malloc:
What is the difference between them and why should I preffer one on the other.
Your help is apprichiated,