@Addem C lacks the sort of protections you're looking for coming from other languages. You're responsible for making sure data structures are initialized. Instead, use tools such as valgrind and memory sanitizer to detect accidental uses of uninitialized data. Or try a modern systems programming language like Rust.
↧