<?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="Type conversion - Page 10 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Type_conversion&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Type_conversion&amp;p=11">3.Next</a>
</p>
<p>as needed at <a href="page.php?w=Run_time_%28program_lifecycle_phase%29">runtime</a> so that the program will run correctly. For example, the following is legal <a href="page.php?w=C_%28programming_language%29">C language</a> code:</p>

<p><syntaxhighlight lang="c">double d;long l;int i;</syntaxhighlight></p>

<p>if (d > i) {    d = i;}</p>

<p>if (i > l) {    l = i;}</p>

<p>if (d == l) {    d *= 2;}</p>

<p>Although , , and  belong to different data types, they will be automatically converted to equal data types each time a comparison or assignment</p><p>
<a accesskey="1" href="page.php?w=Type_conversion&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Type_conversion&amp;p=11">3.Next</a>
</p>

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

</card>
</wml>
