<?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="Printf - Page 19 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=printf&amp;p=18">1.Previous</a><br />
<a accesskey="3" href="page.php?w=printf&amp;p=20">3.Next</a>
</p>

<p>This field allows for using the same value multiple times in a format string instead of having to pass the value multiple times. If a specifier includes this field, then subsequent specifiers must also.</p>

<p>For example, <syntaxhighlight lang="c">printf("%2$d %2$#x; %1$d %1$#x",16,17);</syntaxhighlight>outputs: </p>

<p>This field is very useful for <a href="page.php?w=Localization_%28computing%29">localizing</a> messages to different <a href="page.php?w=natural_language">natural language</a>s that use different <a href="page.php?w=word_order">word order</a>s.</p><p>
<a accesskey="1" href="page.php?w=printf&amp;p=18">1.Previous</a><br />
<a accesskey="3" href="page.php?w=printf&amp;p=20">3.Next</a>
</p>

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

</card>
</wml>
