r/C_Programming • u/heavymetalmixer • Jun 11 '26
Question C ways to manage errors?
I'm still learning C (I come from C++) and I'm not familiar with how to manage errors in C, besides asserts. What are the different ways to do this in C? How do they work?What are their pros and cons?
35
Upvotes
View all comments
Show parent comment
1
u/heavymetalmixer Jun 11 '26
What's an "invariant"?