<?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: problem in assingment 01</title>
	<atom:link href="https://www.emblogic.com/blog/06/problem-in-assingment-01-3/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/</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: hemant.kumar</title>
		<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/#comment-891</link>
		<dc:creator><![CDATA[hemant.kumar]]></dc:creator>
		<pubDate>Sun, 01 Jul 2012 16:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3593#comment-891</guid>
		<description><![CDATA[x=y=z=1;
++x (pre increement) it means x will be 2
here &#124;&#124;(logical or) 
according to the compiler..it wont check further it it is true..so there will be no change in the values of y and z
your output will be 2,1,1
for instance...
x=-1,y=1,z=1;
then x,y,z will be 0,2,2
logical or(&#124;&#124;) -&gt; if the first statement is true(1) then it wont check it further
whereas logical(&amp;&amp;)--&gt;it checks the whole statement.. here priority of these operators doesn&#039;t matter..it goes from left to right]]></description>
		<content:encoded><![CDATA[<p>x=y=z=1;<br />
++x (pre increement) it means x will be 2<br />
here ||(logical or)<br />
according to the compiler..it wont check further it it is true..so there will be no change in the values of y and z<br />
your output will be 2,1,1<br />
for instance&#8230;<br />
x=-1,y=1,z=1;<br />
then x,y,z will be 0,2,2<br />
logical or(||) -&gt; if the first statement is true(1) then it wont check it further<br />
whereas logical(&amp;&amp;)&#8211;&gt;it checks the whole statement.. here priority of these operators doesn&#8217;t matter..it goes from left to right</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep.kumar</title>
		<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/#comment-861</link>
		<dc:creator><![CDATA[sandeep.kumar]]></dc:creator>
		<pubDate>Thu, 28 Jun 2012 07:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3593#comment-861</guid>
		<description><![CDATA[++x&#124;&#124;++y&amp;&amp;++z

x gets preincremented to 2.
since logical or is evaluating to true in first expression(i.e. ++x) so rest of expression is not evaluated.

and the result is 2,1,1]]></description>
		<content:encoded><![CDATA[<p>++x||++y&amp;&amp;++z</p>
<p>x gets preincremented to 2.<br />
since logical or is evaluating to true in first expression(i.e. ++x) so rest of expression is not evaluated.</p>
<p>and the result is 2,1,1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: himanshi</title>
		<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/#comment-856</link>
		<dc:creator><![CDATA[himanshi]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 19:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3593#comment-856</guid>
		<description><![CDATA[im sorry actually i dint see properly.....
actually x will incremented before encountering &#124;&#124; operator.........

thnx]]></description>
		<content:encoded><![CDATA[<p>im sorry actually i dint see properly&#8230;..<br />
actually x will incremented before encountering || operator&#8230;&#8230;&#8230;</p>
<p>thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: himanshi</title>
		<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/#comment-855</link>
		<dc:creator><![CDATA[himanshi]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 19:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3593#comment-855</guid>
		<description><![CDATA[c first of all compiler will check the or operator as it has more priority than and gate then now in this case…it will execute from left
1st process x=1
then as soon as itll obtain or operator it ll incremt its value and then if it iz &gt;0 it will directly give answr as 1… for the whole expression..........

but for x=2,y=1,z=1
thanx]]></description>
		<content:encoded><![CDATA[<p>c first of all compiler will check the or operator as it has more priority than and gate then now in this case…it will execute from left<br />
1st process x=1<br />
then as soon as itll obtain or operator it ll incremt its value and then if it iz &gt;0 it will directly give answr as 1… for the whole expression&#8230;&#8230;&#8230;.</p>
<p>but for x=2,y=1,z=1<br />
thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: himanshi</title>
		<link>https://www.emblogic.com/blog/06/problem-in-assingment-01-3/#comment-854</link>
		<dc:creator><![CDATA[himanshi]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 19:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3593#comment-854</guid>
		<description><![CDATA[c first of all compiler will check the or operator as it has more priority than and gate then now in this case...it will execute from left 
1st process x=1
then as soon as itll obtain or operator it ll incremt its value and then if it iz &gt;0 it will directly give answr as 1...

thanx]]></description>
		<content:encoded><![CDATA[<p>c first of all compiler will check the or operator as it has more priority than and gate then now in this case&#8230;it will execute from left<br />
1st process x=1<br />
then as soon as itll obtain or operator it ll incremt its value and then if it iz &gt;0 it will directly give answr as 1&#8230;</p>
<p>thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
