<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joys of Programming &#187; printf</title>
	<atom:link href="http://joysofprogramming.com/tag/printf/feed/" rel="self" type="application/rss+xml" />
	<link>http://joysofprogramming.com</link>
	<description>Programming made simpler, easier and Joyful experience</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:11:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>gcc: Compilation Warning: incompatible implicit declaration of built-in function `printf&#8217;</title>
		<link>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf-2/</link>
		<comments>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf-2/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 18:24:53 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[compilation warning]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[gcc compilation warning]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf-2/</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29366&c=923442133' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29366&c=923442133' border='0' alt='' /></a></p><br />The purpose of printf() as described by the man page Let&#8217;s make use of printf in a simple program Now compile the program printf.c&#8230; You will see the following warnings. This is because we missed to add the headers which declare the function printf() and the supporting types Let&#8217;s add the relevant header files (.h) [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29366&c=452301208' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29366&c=452301208' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gcc: Compilation Warning: incompatible implicit declaration of built-in function `printf&#8217;</title>
		<link>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf/</link>
		<comments>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 15:09:49 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[compilation warning]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[gcc compilation warning]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf/</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29026&c=1220658535' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29026&c=1220658535' border='0' alt='' /></a></p><br />The purpose of printf() as described by the man page Let&#8217;s make use of printf in a simple program Now compile the program printf.c&#8230; You will see the following warnings. This is because we missed to add the headers which declare the function printf() and the supporting types Let&#8217;s add the relevant header files (.h) [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29026&c=1727792117' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=29026&c=1727792117' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/gcc-incompatible-implicit-declaration-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: printing long double using printf</title>
		<link>http://joysofprogramming.com/c-printing-long-double-printf/</link>
		<comments>http://joysofprogramming.com/c-printing-long-double-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 19:04:03 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[long double]]></category>
		<category><![CDATA[print long double]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=395</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=395&c=462198460' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=395&c=462198460' border='0' alt='' /></a></p><br />If you want to use very large floating numbers in C beyond what can be stored using double, use long double.This is useful for large scale scientific computations Printing a long double is shown here The output of this program As you may have noticed, the size of a long double is 12 bytes. There [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=395&c=1867110021' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=395&c=1867110021' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-printing-long-double-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: printing double using printf</title>
		<link>http://joysofprogramming.com/c-printing-double-printf/</link>
		<comments>http://joysofprogramming.com/c-printing-double-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:54:34 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=392</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=392&c=409177719' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=392&c=409177719' border='0' alt='' /></a></p><br />If you want to use large floating numbers in C, you can use double instead of float. Printing a double is shown here The output of this program The size of a double is 8 bytes. There are three ways by which we printed the double lf corresponding to long float (double) g e: with [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=392&c=1313679984' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=392&c=1313679984' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-printing-double-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: Printing float using printf</title>
		<link>http://joysofprogramming.com/c-printing-float-printf/</link>
		<comments>http://joysofprogramming.com/c-printing-float-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:37:14 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=389</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=389&c=688656360' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=389&c=688656360' border='0' alt='' /></a></p><br />float in C is used to represent floating point numbers. It&#8217;s declaration is as simple as The following program shows how to print a float. Let&#8217;s check the output The output is upto a precision of 6 digits after the decimal point. This is a behavior by default which can be changed<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=389&c=861366576' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=389&c=861366576' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-printing-float-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: Printing unsigned/signed long long int using printf</title>
		<link>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf-2/</link>
		<comments>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf-2/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:24:31 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[long long int]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[signed long long int]]></category>
		<category><![CDATA[unsigned long long int]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=382</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=382&c=1265909650' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=382&c=1265909650' border='0' alt='' /></a></p><br />If you want to use large integer numbers which cannot be represented using 4 bytes, you can use long long int instead of int. A long long int occupies 8 bytes. But you can make use of the sizeof operator to find the size of a long long int. Two types of integer are supported [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=382&c=135627103' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=382&c=135627103' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: Printing unsigned/signed long int using printf</title>
		<link>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf/</link>
		<comments>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:11:59 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[long int]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[signed long int]]></category>
		<category><![CDATA[unsigned long int]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=380</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=380&c=1425532027' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=380&c=1425532027' border='0' alt='' /></a></p><br />If you want to use integer which occupies 4 bytes, you can use long instead of int. Note that such a case is useful in cases where your compiler supports only 2 bytes int. In case of gcc compilers and a normal x86 machine, both int and long int occupy 4 bytes. Two types of [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=380&c=483359840' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=380&c=483359840' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-printing-unsigned-signed-long-int-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: Printing unsigned/signed short using printf</title>
		<link>http://joysofprogramming.com/c-unsigned-signed-short-printf/</link>
		<comments>http://joysofprogramming.com/c-unsigned-signed-short-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 16:51:10 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[signed short]]></category>
		<category><![CDATA[unsigned short]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=376</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=376&c=1808007359' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=376&c=1808007359' border='0' alt='' /></a></p><br />Two types of integer are supported in C: signed and unsigned integers. If you want to use integer which occupies only 2 bytes, you can use short instead of int. To declare a signed short integer To declare a unsigned short integer If you do not specify a specifier with short, it is taken as [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=376&c=2020433301' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=376&c=2020433301' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-unsigned-signed-short-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C: Printing unsigned/signed integer using printf</title>
		<link>http://joysofprogramming.com/c-print-unsigned-signed-integer-printf/</link>
		<comments>http://joysofprogramming.com/c-print-unsigned-signed-integer-printf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 16:35:23 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[signed int]]></category>
		<category><![CDATA[unsigned int]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=371</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=371&c=1214705741' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=371&c=1214705741' border='0' alt='' /></a></p><br />Two types of integer are supported in C: signed and unsigned integers. To declare a signed integer To declare a unsigned integer If you do not specify a specifier with int, it is taken as signed integer. To print signed integer, you can either use i or d. For unsigned integer, use u. This is [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=371&c=1153219323' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=371&c=1153219323' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/c-print-unsigned-signed-integer-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  joysofprogramming.com/tag/printf/feed/ ) in 4.35825 seconds, on Feb 4th, 2012 at 4:15 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 4th, 2012 at 5:15 pm UTC -->
