Re:C will never stop you from making mistakes
by _wldu on Monday August 10, 2020 @10:00AM
(#24109297)
I would not cringe at this. It's just his preference. They have the exact same meaning. Other than personally preferring one way or the other for readability, there is no difference.
[ Parent
| on HN ]
Re:C will never stop you from making mistakes
by lokedhs on Monday August 10, 2020 @10:24AM
(#24109573)
The problem is that if they forget to include the correct header file that declares malloc, then the cast will hide any warnings.
If the cast is not there, it will tell you that there is a type mismatch.