0
Doesn't malloc(); function return a void pointer? Then why in the malloc(); module in C, the type casting is not used?
1 Answer
+ 3
I'm more concerned with the absence of `free` usage example in examples involving dynamic memory allocation. Also the pointer validity verification before use is not included in examples. But maybe it's just to keep the examples short, and easier to digest.