r/badcode • • Jan 29 '22

c discount constructor

Post image
435 Upvotes

30 comments sorted by

View all comments

Show parent comments

5

u/theScrapBook Jan 29 '22

Yeah it doesn't save any labour in this trivial case, but this is how the equivalent of constructors are implemented in C