Actually C++ is not a superset of C. And it does have these kinds of issues. C++ continued to diverge with C99&#x2F;C11. 
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Compatibility_of_C_and_C%2B%2B" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Compatibility_of_C_and_C%2B%2B</a><p>Function pointers are one scary area. I don&#x27;t know if C++11&#x2F;C++14 decided to fix this yet. Most people relied on undefined behavior to make this work.