Hacker News new | ask | show | jobs
by milesrout 3352 days ago
I don't see what is 'horrible programming practice' about

    int *x = malloc(sizeof(int));
1 comments

because malloc doesn't return an int, it returns a void
malloc returns a void pointer because it implicitly converts to an int pointer, as it should.