Why? I don't know about you, but I'm not perfect. I forget to include stdlib.h all the time, and I'm also aware of legitimate problems that can occur if there's no prototype in scope for malloc. But if that doesn't do it for you, how about less typing, easier maintenance, and cleaner code? There are good arguments for both sides, but I think in general the arguments to not cast make more sense.The fear of forgetting to include stdlib.h is probably one of the funniest excuses I've read to date
Am I just overly flexible to be able to see both sides of an argument and pick the most reasonable solution? Because a lot of people--like you--take what I say and mangle it to the most extreme possible interpretation. Or am I just really bad at expressing myself and nobody understands me?Then you do not do any typecasting at all for any reason