3 ms·
http://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc http://stackoverflow.com/questions/605845/do-i-cast-the-resu... is a good place to star
by unwind 15y ago
http://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc http://stackoverflow.com/questions/605845/do-i-cast-the-resu... is a good place to start for a deeper discussion of this topic, if someone is interested.
My answer (obviously) is "yes", although as some folks point out here too, there are portability concerns that make it worth it sometimes.