<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Undefined behavior - Page 8 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=undefined_behavior&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=undefined_behavior&amp;p=9">3.Next</a>
</p>
<p>runtime.</p>

<p>For C and C++, the compiler is allowed to give a compile-time diagnostic in these cases, but is not required to: the implementation will be considered correct whatever it does in such cases, analogous to <a href="page.php?w=don%27t-care_term">don't-care term</a>s in digital logic. It is the responsibility of the programmer to write code that never invokes undefined behavior, although compiler implementations are allowed to issue diagnostics when this happens. Compilers nowadays have flags that enable such diagnostics, for example,</p><p>
<a accesskey="1" href="page.php?w=undefined_behavior&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=undefined_behavior&amp;p=9">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
