Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?

Published: 22/09/2019
Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?
Source: SOFTWAREENGINEERING.STACKEXCHANGE.COM

This SO post lists a fairly comprehensive list of situations where the C/C++ language specification declares as to be 'undefined behaviour'. However what I want to understand why other modern languages like C# or Java doesn't have the concept of 'undefined behavior'? Does it mean, the compiler designer can control all possible scenarios(C#,Java) or not(C,C++).

Read more
Related news
Comment
FACEBOOK