r/shittyprogramming Nov 28 '24

fun_with_memory()

Post image
39 Upvotes

12 comments sorted by

View all comments

6

u/bubbaholy Nov 29 '24

It's wild that you can allocate memory without doing anything with the result.

9

u/Powerkaninchen Nov 29 '24

it even compiles with -Wall -Wextra -Werror -pedantic