<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>My terrific padlet by Farwa Hussnain</title>
      <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2025-05-31 17:37:34 UTC</pubDate>
      <lastBuildDate>2025-12-18 08:43:28 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title></title>
         <author>farwahussnain</author>
         <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474650047</link>
         <description><![CDATA[<p><strong>Trace the output:</strong></p><p><strong>1.</strong> #include &lt;stdio.h&gt;</p><p>int main() {</p><p>&nbsp;&nbsp;&nbsp; int x = 5;</p><p>&nbsp;&nbsp;&nbsp; x++;&nbsp;</p><p>&nbsp;&nbsp;&nbsp; printf("x = %d\n", x);&nbsp;</p><p>&nbsp;&nbsp;&nbsp; return 0;</p><p>}</p><p><strong>Output:</strong></p><p><strong>Explaination:</strong></p><p><br></p><p><strong>2</strong>. #include &lt;stdio.h&gt;</p><p>int main() {</p><p>&nbsp;&nbsp;&nbsp; int a = 5, b = 3, result;</p><p>&nbsp;&nbsp;&nbsp; result = a++ + --b;&nbsp;</p><p>&nbsp;&nbsp;&nbsp; printf("a = %d, b = %d, result = %d\n", a, b, result);</p><p>&nbsp;&nbsp;&nbsp; return 0;</p><p>}</p><p><strong>Output:</strong></p><p><strong>&nbsp;Explaination:</strong></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-31 17:42:57 UTC</pubDate>
         <guid>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474650047</guid>
      </item>
      <item>
         <title>Group 5</title>
         <author></author>
         <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474655846</link>
         <description><![CDATA[<p>Output 1</p><p>6</p><p>In this code first we initialize x and assign value 5 after this we have post increment operator so the value increase by 1 and the output it generates will be 6 </p><p><br/></p><p>Output 2</p><p>7</p><p>Initialize both a and b and assign them values a=5 and b=7 so now the result we need is to add both values but before that there as post increment operator with a which increments 1 in a and it becomes 6 and we have pre decrement with b so the value becomes 2 </p><p>due to post increment we use the value of a before increment and due to pre decrement we use the value after the decrement so the result will be 7 as 5+2=7</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-31 18:04:14 UTC</pubDate>
         <guid>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474655846</guid>
      </item>
      <item>
         <title>Group 1</title>
         <author>zunairaawais21</author>
         <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474661380</link>
         <description><![CDATA[<p>Output 1: </p><p>x=6 </p><p>Explanation: in this program post increment operator is used so the initialized value of x ( which is 5) will get increment by 1 and gets print .Here x++ was a stand alone statement so it was first assigned and then incremented because of post increment operator </p><p>Output 2: </p><p>a=6,b=2, result=7</p><p>Explanation: here a will be used as 5 and then becomes 6 because a++ is a post increment operator and b will be used as 2 as --b is a pre increment operator so 5+2=7 would be the results but because of post increment a will be printed as 6 in the output.</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-31 18:26:05 UTC</pubDate>
         <guid>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474661380</guid>
      </item>
      <item>
         <title>Group 2:-</title>
         <author></author>
         <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474869050</link>
         <description><![CDATA[<p><strong>Output</strong> <strong>of</strong> <strong>first</strong> <strong>program</strong> <strong>:-</strong></p><p>In this program, x is declared and initialized by the value of 5.</p><p>Increment operator is used as x++</p><p>Which means that the value wil be incremented by 1.</p><p>Then, printf statement is used to print the value of x on screen. </p><p>So the output will be :-</p><p><strong>X=6</strong></p><p><br/></p><p><strong>Output of second program :-</strong></p><p>In this program, a is declared and initialized by the value of 5. Similarly, b is declared and initialized by the value of 3. </p><p>Then, result is initialized by a++ + - - b which means that the value of a is incremented by 1 and becomes 6in the memory but 5 will be assign to result as increment operator is used after a.  b will be decremented by 1 and becomes 2. So the vaule as a whole that will be assigned to result is 7 as result = 5+ 2</p><p>Then, the printf statement is used to print the output on screen. As \n is used so each will be printed on seperate line. </p><p><br/></p><p>The output will be:-</p><p><strong>a=6</strong></p><p><strong>b=2</strong></p><p><strong>result= 7</strong></p><p><br/></p><p>. </p>]]></description>
         <enclosure url="" />
         <pubDate>2025-06-01 08:40:01 UTC</pubDate>
         <guid>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3474869050</guid>
      </item>
      <item>
         <title>Group 4</title>
         <author></author>
         <link>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3477531420</link>
         <description><![CDATA[<p>Output 1 :</p><p>6</p><p>Explanation : </p><p>In this program, we have initialized the variable x and assigned a value 5 to it. After this, we have used post increment operator i.e. the variable will be assigned and then incremented by 1. Then, we have used the print function to print the output.</p><p><br/></p><p>Output 2 :</p><p>a=6,b=2, result=7</p><p>Explanation :</p><p>In this program, first we have initialized the variables a, b and result and assigned the values 5,3 to a and b respectively. Here a post increment operator is used with a and pre decrement operator  is used with b. The sum of output of both operators is assigned to result. Thus , the value of a will be assigned first and then incremented and the value of b will be decremented first and then assigned . Hence the output of result will be 7. At last we have used the print function to print the values of a ,b and result. </p>]]></description>
         <enclosure url="" />
         <pubDate>2025-06-03 14:59:01 UTC</pubDate>
         <guid>https://padlet.com/farwahussnain/rjtmfnfndnixzjgc/wish/3477531420</guid>
      </item>
   </channel>
</rss>
