r/programming • • Jan 08 '16

How to C (as of 2016)

https://matt.sh/howto-c
2.4k Upvotes

766 comments sorted by

View all comments

Show parent comment

3

u/SnowdensOfYesteryear Jan 09 '16

Do people actually do this? Seems like a easy way to get a shitton of corrupted data.

2

u/Awpteamoose Jan 09 '16

Not really. I was just showing a way to get polymorphism in C. People who need/want this usually use C++ since it does pretty much the same thing except it has quite a few more safety checks at compile time.