C - How is it possible to ensure that code doesn’t just crash due to a uncaught type error and pointers pointing randomly to memory

Hi,

This is very interesting …

I think the question is: how much trust do you have in your code … when it runs that it won’t crash.

Or, stated differently, what is it, in your code that gives you that trust?

I am thinking to write C level code, but keep thinking that if i were to use C++, and use it as if it were C without any of the object oriented stuff – i would essentially program in C with type checking for free.

Does this makes sense?

Dan