<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: E14: Assignment 01</title>
	<atom:link href="https://www.emblogic.com/blog/08/e14-assignment-01/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/08/e14-assignment-01/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: sachin</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-2006</link>
		<dc:creator><![CDATA[sachin]]></dc:creator>
		<pubDate>Fri, 07 Sep 2012 08:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-2006</guid>
		<description><![CDATA[I have completed assignment  1st but problem in question no 9 and 26.]]></description>
		<content:encoded><![CDATA[<p>I have completed assignment  1st but problem in question no 9 and 26.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandesh</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1986</link>
		<dc:creator><![CDATA[sandesh]]></dc:creator>
		<pubDate>Thu, 06 Sep 2012 14:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1986</guid>
		<description><![CDATA[I have completed 1st assignment.]]></description>
		<content:encoded><![CDATA[<p>I have completed 1st assignment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sumit lathwal</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1950</link>
		<dc:creator><![CDATA[sumit lathwal]]></dc:creator>
		<pubDate>Wed, 05 Sep 2012 06:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1950</guid>
		<description><![CDATA[24 question are done but problem in question no 11&amp;19]]></description>
		<content:encoded><![CDATA[<p>24 question are done but problem in question no 11&amp;19</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikhil.raheja</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1886</link>
		<dc:creator><![CDATA[nikhil.raheja]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 08:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1886</guid>
		<description><![CDATA[Assignment 1 completed.
Doubt in ques 9,15 &amp; 26.
What is meant by %.8g in ques no. 9?
What is floating point underflow?]]></description>
		<content:encoded><![CDATA[<p>Assignment 1 completed.<br />
Doubt in ques 9,15 &amp; 26.<br />
What is meant by %.8g in ques no. 9?<br />
What is floating point underflow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep.dabas</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1885</link>
		<dc:creator><![CDATA[sandeep.dabas]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 08:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1885</guid>
		<description><![CDATA[22 questions are done bt having problm in 15 que.. and last 4 quetions are remaining...]]></description>
		<content:encoded><![CDATA[<p>22 questions are done bt having problm in 15 que.. and last 4 quetions are remaining&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikhil.raheja</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1884</link>
		<dc:creator><![CDATA[nikhil.raheja]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 08:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1884</guid>
		<description><![CDATA[Assignment 1 completed with doubt in question 9,15 and 26.
What is meant by %.8g?
What is floating point underflow?]]></description>
		<content:encoded><![CDATA[<p>Assignment 1 completed with doubt in question 9,15 and 26.<br />
What is meant by %.8g?<br />
What is floating point underflow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeev</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1875</link>
		<dc:creator><![CDATA[Sanjeev]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 03:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1875</guid>
		<description><![CDATA[Q 9,10,15 stil not getting it... :(]]></description>
		<content:encoded><![CDATA[<p>Q 9,10,15 stil not getting it&#8230; <img src="https://www.emblogic.com/blog/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley" /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1868</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 21:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1868</guid>
		<description><![CDATA[Correction:
Format:%g  means use %e or %f, whichever is shorter.
An integer placed between a % sign and the format, acts as a minimum field width specifier and pads the output with spaces.
Suppose:q=44;
printf(“%8d\t”,q);
******44 (replace &#039;*&#039; with spaces) 
the output will be display a number with a minimum of 8 characters. 

These integers placed Between % and format are called precision modifiers.
Precision modifiers have different meanings depending on format.

1.)When precision modifiers are used with %e, %E, and %f, the precision modifier lets you specify the number of decimal places desired. For example,
%12.6f
will display a floating number at least 12 digits wide, with six decimal places.
2.) When precision modifiers are used with %g and %G, the precision modifier determines the maximum number of significant digits displayed.

All of printf()&#039;s output is right-justified,for left justified output you place a minus sign right after the % sign.]]></description>
		<content:encoded><![CDATA[<p>Correction:<br />
Format:%g  means use %e or %f, whichever is shorter.<br />
An integer placed between a % sign and the format, acts as a minimum field width specifier and pads the output with spaces.<br />
Suppose:q=44;<br />
printf(“%8d\t”,q);<br />
******44 (replace &#8216;*&#8217; with spaces)<br />
the output will be display a number with a minimum of 8 characters. </p>
<p>These integers placed Between % and format are called precision modifiers.<br />
Precision modifiers have different meanings depending on format.</p>
<p>1.)When precision modifiers are used with %e, %E, and %f, the precision modifier lets you specify the number of decimal places desired. For example,<br />
%12.6f<br />
will display a floating number at least 12 digits wide, with six decimal places.<br />
2.) When precision modifiers are used with %g and %G, the precision modifier determines the maximum number of significant digits displayed.</p>
<p>All of printf()&#8217;s output is right-justified,for left justified output you place a minus sign right after the % sign.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1867</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 20:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1867</guid>
		<description><![CDATA[Question 15
float a,b;
b=2.0e20;
gives b=200000004008175468544.000000;
but if I use double instead of float
b=2.0e20;
gives b=200000000000000000000.000000;
why the difference?
The float b=2.0e10; it gives b=20000000000.000000;
but if float b=2.0e11; gives b=199999995904.000000;
is this because of float type? but the range of float is 3.4e-38 to 3.4e+38;
please explain.]]></description>
		<content:encoded><![CDATA[<p>Question 15<br />
float a,b;<br />
b=2.0e20;<br />
gives b=200000004008175468544.000000;<br />
but if I use double instead of float<br />
b=2.0e20;<br />
gives b=200000000000000000000.000000;<br />
why the difference?<br />
The float b=2.0e10; it gives b=20000000000.000000;<br />
but if float b=2.0e11; gives b=199999995904.000000;<br />
is this because of float type? but the range of float is 3.4e-38 to 3.4e+38;<br />
please explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1866</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 18:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1866</guid>
		<description><![CDATA[Question 12: 
int ten=10,two=2;
printf(&quot;%d minus %d is %d\n&quot;,ten,2,ten-two);
In the printf statement if we use any integer or character (between single quotes &#039;a&#039;) in place of 2 we get output as 
10 minus 8 is 8; (if we replace 2 by integer)
10 minus ASCII_value is 8; (if we replace 2 by character between single quotes.)
but if we use any number with decimal values (7.28) in place of 2 we get output as:
10 minus 8 is 10;
can anyone explain why this happens?]]></description>
		<content:encoded><![CDATA[<p>Question 12:<br />
int ten=10,two=2;<br />
printf(&#8220;%d minus %d is %d\n&#8221;,ten,2,ten-two);<br />
In the printf statement if we use any integer or character (between single quotes &#8216;a&#8217;) in place of 2 we get output as<br />
10 minus 8 is 8; (if we replace 2 by integer)<br />
10 minus ASCII_value is 8; (if we replace 2 by character between single quotes.)<br />
but if we use any number with decimal values (7.28) in place of 2 we get output as:<br />
10 minus 8 is 10;<br />
can anyone explain why this happens?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pk8981</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1855</link>
		<dc:creator><![CDATA[pk8981]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 08:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1855</guid>
		<description><![CDATA[i am unable to understand the logics used in questions-9,10,12,15,26]]></description>
		<content:encoded><![CDATA[<p>i am unable to understand the logics used in questions-9,10,12,15,26</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1848</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 00:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1848</guid>
		<description><![CDATA[If void has been specified with main.
int main(void)
Is it necessary to give return 0; statement at the end?
Does main (void) mean that after executing, the main function will not return any value?]]></description>
		<content:encoded><![CDATA[<p>If void has been specified with main.<br />
int main(void)<br />
Is it necessary to give return 0; statement at the end?<br />
Does main (void) mean that after executing, the main function will not return any value?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1847</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 00:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1847</guid>
		<description><![CDATA[The use of the &#039;#&#039; character with the %x indicates that the hexadecimal number should be printed with the &#039;0x&#039; prefix.
The use of the &#039;#&#039; character with the %o indicates that the octal value should be displayed with a 0 prefix.]]></description>
		<content:encoded><![CDATA[<p>The use of the &#8216;#&#8217; character with the %x indicates that the hexadecimal number should be printed with the &#8217;0x&#8217; prefix.<br />
The use of the &#8216;#&#8217; character with the %o indicates that the octal value should be displayed with a 0 prefix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1846</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sun, 02 Sep 2012 00:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1846</guid>
		<description><![CDATA[Question 10 
double d=3.2;
int y;
x=d*(y=(int)2.9+1.1/d);
printf(&quot;x=%g\ty=%g\n&quot;,(double)x,(double)y);
after executing the above statement we get y=2 and x=6.4;
But when I complied a new program:

int a;
a=(int)2.9+1.1/3.2;
printf(&quot;a=%g\n&quot;,a);
I got a=0.
If I use &quot;(double)a&quot; instead of &quot;a&quot; in the printf statement I get a=2.
using &quot;(double)a&quot; cast operator shouldn&#039;t I get the value with decimals? 
what is the function of &quot;(int)&quot; in expression a=(int)2.9+1.1/3.2 and what value should it return?]]></description>
		<content:encoded><![CDATA[<p>Question 10<br />
double d=3.2;<br />
int y;<br />
x=d*(y=(int)2.9+1.1/d);<br />
printf(&#8220;x=%g\ty=%g\n&#8221;,(double)x,(double)y);<br />
after executing the above statement we get y=2 and x=6.4;<br />
But when I complied a new program:</p>
<p>int a;<br />
a=(int)2.9+1.1/3.2;<br />
printf(&#8220;a=%g\n&#8221;,a);<br />
I got a=0.<br />
If I use &#8220;(double)a&#8221; instead of &#8220;a&#8221; in the printf statement I get a=2.<br />
using &#8220;(double)a&#8221; cast operator shouldn&#8217;t I get the value with decimals?<br />
what is the function of &#8220;(int)&#8221; in expression a=(int)2.9+1.1/3.2 and what value should it return?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-assignment-01/#comment-1844</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sat, 01 Sep 2012 22:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=5137#comment-1844</guid>
		<description><![CDATA[float a,b,c;
a=100/3;
printf(&quot;a=%f&quot;,a); prints a=33.000000 
b=100;
c=b/3;
printf(&quot;c=%f&quot;,c); prints c=33.333332

why are a and c giving different values when a=100/3 and also c=100/3 ?]]></description>
		<content:encoded><![CDATA[<p>float a,b,c;<br />
a=100/3;<br />
printf(&#8220;a=%f&#8221;,a); prints a=33.000000<br />
b=100;<br />
c=b/3;<br />
printf(&#8220;c=%f&#8221;,c); prints c=33.333332</p>
<p>why are a and c giving different values when a=100/3 and also c=100/3 ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
