Safety critical software is incredibly important for systems designed for applications such as aerospace, rail transportation, power stations and the like. This the F-35 hey, built largely in C++. …
The difference between C and C++ is interesting here. C++ enables you to build abstractions to lower error risk (bounded integers, range checked containers, …) but C++ is also much more complex and that increases error risk.
Quite interesting, that the author uses code which looks more like C than C++ :) Anyway, there is also a second part too: https://craftofcoding.wordpress.com/2021/04/02/c-versus-ada-for-safety-critical-software-ii/
The difference between C and C++ is interesting here. C++ enables you to build abstractions to lower error risk (bounded integers, range checked containers, …) but C++ is also much more complex and that increases error risk.