<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2895443228979820386</id><updated>2026-10-23T03:30:02.574+08:00</updated><category term="Algorithm"/><category term="Alim Blog"/><category term="C++"/><category term="Swap"/><category term="Swap Numbers"/><category term="Swapping"/><category term="Swapping Algorithm"/><category term="Swapping in C"/><category term="Swapping in C++"/><category term="Swapping without using third variable"/><category term="swap variables"/><category term="swap variables using memory"/><category term="swap without third variable"/><category term="DB First Approch / Database First Approch / Create Database First then model then code"/><category term="Volume"/><category term="Adobe Flash CS3"/><category term="Alim Ul Karim"/><category term="North South University"/><category term="VS2010 SP1"/><category term="Visual Studio 2010 SP1"/><category term="Visual Studio 2010 SP1 Installation Failed"/><category term="Visual Studio 2010 Service Pack 1"/><category term="VisualStudio 2010 SP1"/><category term=".netFramework questions part 1"/><category term="AS3"/><category term="Bangla C Programming"/><category term="Benefits of IEnumerable"/><category term="C"/><category term="C Programming"/><category term="C compiler error"/><category term="C++ IDE setup"/><category term="CLS"/><category term="CS4"/><category term="CS5 (ActionScript 3.0 AS3) - Send Data (SendData) to a URL or PHP or ASP Page as Post or Get Method Example"/><category term="CSE"/><category term="CSE 373"/><category term="CSE 373 Introduction to Algorithms"/><category term="CSS Center or Centering an Object"/><category term="CSS/HTML Interview Questions"/><category term="Code Blocks Installation Process Step by Step"/><category term="Computer"/><category term="Computer Put in TaskBar"/><category term="Cons of IEnumerable"/><category term="Developers Organism"/><category term="Division Operation Using Minus Operator In C/C++"/><category term="Division without Using Division Operator In C/C++"/><category term="Double to Char[] array in C"/><category term="Double to Char[] array in c/c++"/><category term="Double to Char[] in C++"/><category term="Flash"/><category term="How to Clean up the Screen in C/C++"/><category term="IEnumerable"/><category term="Inherit"/><category term="Inheritance"/><category term="Inheritance List of ICollection"/><category term="Inheritance List of IEnumerable"/><category term="Inheritance List of IList"/><category term="Installation"/><category term="Installation Failed"/><category term="Interview Questions"/><category term="Low"/><category term="Multiplication Algorithm Using Add Operator in C/C++"/><category term="Mute"/><category term="MyComputer"/><category term="NSU"/><category term="Programming Basics in C"/><category term="Pros and Cons of IEnumerable"/><category term="Pros of IEnumerable"/><category term="Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar"/><category term="Reduce"/><category term="Remainder / Remainder in C / Remainder In C++ / modulus user-defined function"/><category term="Search Engine Project"/><category term="Send Data Using Flash"/><category term="Send Data Using Flash AS3"/><category term="Sound"/><category term="Sound off"/><category term="Windows 7"/><category term="Windows 7 SP1"/><category term="Windows Vista"/><category term="Windwos 8"/><category term="[NSU] English 102.7 Summer 2011 Board"/><category term="bangla"/><category term="char"/><category term="convert"/><category term="decrease volume"/><category term="difference"/><category term="double"/><category term="interview"/><category term="php"/><category term="primary key"/><category term="questions"/><category term="unique key"/><category term="windows 8"/><title type='text'>Alim Ul Karim&#39;s Blog</title><subtitle type='html'>A system architect with 20+ years of professional software engineering experience across enterprise, fintech, and distributed systems. His technology stack spans .NET/C# (18+ years), JavaScript (10+ years), TypeScript (6+ years), and Golang (4+ years).&#xa;&#xa;Recognized as a top 1% talent at Crossover and one of the top software architects globally. He is also the Chief Software Engineer of Riseup Asia LLC and maintains an active presence on Stack Overflow (2,452+ reputation, member since 2010).</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-6911351993094692909</id><published>2015-01-09T05:38:00.001+08:00</published><updated>2015-01-09T05:39:14.702+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alim Ul Karim"/><category scheme="http://www.blogger.com/atom/ns#" term="bangla"/><category scheme="http://www.blogger.com/atom/ns#" term="Bangla C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Developers Organism"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming Basics in C"/><title type='text'>C Programming Introduction in Bangla</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;C Programming Introduction in Bangla&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;by Alim Ul karim | group link&amp;nbsp;https://www.facebook.com/groups/c.prog.alim/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;It&#39;s a series in Bangla language to choose C as your first programming language. Please stay tuned at our programming group&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/groups/c.prog.alim&quot;&gt;C Programming Group in Bangla&lt;/a&gt;&amp;nbsp;. If you like us then please share the video and please like us on facebook&amp;nbsp;&lt;a href=&quot;http://fb.com/DevelopersOrganism&quot;&gt;Developers Organism facebook page&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Email me if needed : alim{at} developers-organism.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;//www.youtube.com/embed/bihSzMF3bCk&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Introduction to C Programming, C Programming in Bangla&quot;&gt;
     &lt;strong&gt;C Programming&lt;/strong&gt; in  &lt;strong&gt;Bangla&lt;/strong&gt;  or &lt;strong&gt; Bengali&lt;/strong&gt; :
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;C Programming Introduction&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;C Programming Introduction&quot;&gt;
            &lt;a href=&quot;http://c-programming-bangla.blogspot.com/2015/01/introduction-to-c-programming-in-bangla.html&quot; title=&quot;C Programming Introduction&quot;&gt;
                &lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;150&quot; src=&quot;//www.youtube.com/embed/bihSzMF3bCk&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Programming in C&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;C Programming in Bangla&quot;&gt;
            &lt;a href=&quot;http://c-programming-bangla.blogspot.com/2015/01/introduction-to-c-programming-in-bangla.html&quot; title=&quot;Programming in C&quot;&gt;
                &lt;strong&gt;&lt;em&gt;Introduction &lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;to&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;C&lt;/em&gt;&lt;/strong&gt;-&lt;strong&gt;&lt;em&gt;Programming&lt;/em&gt;&lt;/strong&gt; in &lt;strong&gt;&lt;em&gt;Bangla&lt;/em&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;em&gt;Bengali&lt;/em&gt;&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Bangla C Programming&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Bangla C Programming&quot;&gt;
            &lt;a href=&quot;http://c-programming-bangla.blogspot.com/2015/01/introduction-to-c-programming-in-bangla.html&quot; title=&quot;Bangla C Programming&quot;&gt;
                &lt;strong title=&quot;Bangla C Programming&quot;&gt;Bangla C Programming&lt;/strong&gt;&lt;br /&gt;
                &lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;150&quot; src=&quot;//www.youtube.com/embed/bihSzMF3bCk&quot; width=&quot;200&quot;&gt;&lt;/iframe&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot; title=&quot;Programming in C Search Labels&quot;&gt;
&lt;strong&gt;Search &lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt;:
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Programming in C&quot;&gt;
        Programming in C,  
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Bangla Programming in C&quot;&gt;
        Bangla Programming in C, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;C Programming in Bangla&quot;&gt;
        &lt;strong&gt;Programming&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt; &lt;strong&gt;with&lt;/strong&gt; &lt;strong&gt;Alim Ul Karim&lt;/strong&gt; 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;C Programming Intro in Bangla&quot;&gt;
        &lt;strong&gt;C&lt;/strong&gt; &lt;strong&gt;Programming&lt;/strong&gt; in &lt;strong&gt;Bangla&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;bangla&quot;&gt;
        &lt;strong&gt;Bangla&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Bengali&quot;&gt;
        &lt;strong&gt;Bengali&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;C Language&quot;&gt;
        &lt;strong&gt;C Language&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/6911351993094692909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2015/01/c-programming-introduction-in-bangla-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/6911351993094692909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/6911351993094692909'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2015/01/c-programming-introduction-in-bangla-by.html' title='C Programming Introduction in Bangla'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-8313327856830154111</id><published>2013-05-09T08:26:00.001+08:00</published><updated>2013-05-09T08:27:23.214+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alim Ul Karim"/><category scheme="http://www.blogger.com/atom/ns#" term="CSE"/><category scheme="http://www.blogger.com/atom/ns#" term="CSE 373"/><category scheme="http://www.blogger.com/atom/ns#" term="CSE 373 Introduction to Algorithms"/><category scheme="http://www.blogger.com/atom/ns#" term="North South University"/><category scheme="http://www.blogger.com/atom/ns#" term="NSU"/><category scheme="http://www.blogger.com/atom/ns#" term="Search Engine Project"/><title type='text'>Small Search Engine Project For NSU CSE 373</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;w:sdt docparttype=&quot;Cover Pages&quot; docpartunique=&quot;t&quot; id=&quot;1369565111&quot; sdtdocpart=&quot;t&quot;&gt;
 &lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZvB1Koio0dsj8a9j84x8mGcsR6g1k5UR_0x1T8lnWFLKvOqrX30U5zmMRopIuEM0FfBUJrFPk6Ikj5YU6VAcQxg2LrFUfwDnR5IE_3gqd5zGpNJUKJBqtSrUrAv3cC6XP6SCycLOyNET4/s1600/project+final+image.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZvB1Koio0dsj8a9j84x8mGcsR6g1k5UR_0x1T8lnWFLKvOqrX30U5zmMRopIuEM0FfBUJrFPk6Ikj5YU6VAcQxg2LrFUfwDnR5IE_3gqd5zGpNJUKJBqtSrUrAv3cC6XP6SCycLOyNET4/s640/project+final+image.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 20.0pt;&quot;&gt;Acknowledgement&lt;/span&gt;&lt;/b&gt;&lt;em&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-style: normal; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-font-size: 18.0pt; mso-bidi-theme-font: major-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 200%;&quot;&gt;Firstly, I would like to take immense
pleasure in thanking &lt;b&gt;Dr. Nova Ahmed&lt;/b&gt;
for permitting me to complete a project on Search Engine using C#.NET. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 200%;&quot;&gt;Throughout the project I have learned
a lot and it was really a great experience. Experience that I had gained
throughout will not be a part of my life, if Dr. Nova hasn’t permitted me in
the first place. So all the credit goes to our excellent faculty of North South
University &lt;b&gt;Dr. Nova Ahmed&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAel4TBebpX5R8YyPSCbNB-QYn4MKIhEkrukoC_R2HvdhGl2rin4TfJC_AjSC8OdzyA546h6b7hgFGYSMbPF0JOX1Cg6Iwh1KGIQAH56yrJD7VB4d_qPEFXzb7JdpTy5A8ZFfl4Kfafs5n/s1600/about.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAel4TBebpX5R8YyPSCbNB-QYn4MKIhEkrukoC_R2HvdhGl2rin4TfJC_AjSC8OdzyA546h6b7hgFGYSMbPF0JOX1Cg6Iwh1KGIQAH56yrJD7VB4d_qPEFXzb7JdpTy5A8ZFfl4Kfafs5n/s320/about.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 200%;&quot;&gt;Finally, I would like to express my
heartfelt thanks to my beloved parents for their blessings and my
friends/classmates for their help and wishes to try my best in this project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 200%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Default&quot; style=&quot;line-height: 200%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;b style=&quot;line-height: normal; text-align: left; text-indent: 0px;&quot;&gt;&lt;span style=&quot;font-size: 20pt;&quot;&gt;Abstract&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-font-size: 12.0pt;&quot;&gt;(How
the information has been processed)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 200%; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;First
I have used Flash CS5.5 to design the user interface. In addition, I have used C#.NET
4, Entity framework 5, Microsoft LinQ and SQL Express to develop this software.
For core programming, I have used pure C#.NET with its CLR libraries. To communicate
with database, I have used Object Relational Model (ORM) as Entity framework
and Microsoft LinQ. I have also made learning video on linq and entity
framework 5. For additional helps I have used google, stackoverflow and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;em&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-style: normal; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-font-size: 18.0pt; mso-bidi-theme-font: major-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 200%; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;(What is the
project is about)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 200%; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 300%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The
primary goal of the project was to make a search engine that can search text
files data from all nested folders inside a given folder. First, the search algorithm
should look for the exact given text and then if not found then look for single
parts without escape sequences (i.e. ‘I’,’am’,’was’,’were’ and so on) and then
search for pluralize syntax or singularize syntax from a given dictionary. Finally,
list the files as if found by those given search phrases. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-indent: 0.5in;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 48px;&quot;&gt;Presentation :&amp;nbsp;&lt;a href=&quot;http://www.mediafire.com/view/?rzw2hiyqdd3i6kj&quot;&gt;http://www.mediafire.com/view/?rzw2hiyqdd3i6kj&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 48px;&quot;&gt;Report :&amp;nbsp;&lt;a href=&quot;http://www.mediafire.com/view/?588q63m7zmw38jc&quot;&gt;http://www.mediafire.com/view/?588q63m7zmw38jc&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 48px;&quot;&gt;Published Project :&amp;nbsp;&lt;a href=&quot;http://www.mediafire.com/download.php?bqd22nywr8ptvb0&quot;&gt;http://www.mediafire.com/download.php?bqd22nywr8ptvb0&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 48px;&quot;&gt;Source Code :&amp;nbsp;&lt;a href=&quot;http://www.mediafire.com/download.php?phq66123ia8lc1y&quot;&gt;http://www.mediafire.com/download.php?phq66123ia8lc1y&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 300%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 300%; text-align: justify; text-indent: .5in; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;em&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 57.0pt; font-style: normal; line-height: 115%; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-font-size: 18.0pt; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-latin;&quot;&gt;
 &lt;o:p&gt;&lt;/o:p&gt;&lt;w:sdtpr&gt;&lt;/w:sdtpr&gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/8313327856830154111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2013/05/small-search-engine-project-for-nsu-cse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8313327856830154111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8313327856830154111'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2013/05/small-search-engine-project-for-nsu-cse.html' title='Small Search Engine Project For NSU CSE 373'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZvB1Koio0dsj8a9j84x8mGcsR6g1k5UR_0x1T8lnWFLKvOqrX30U5zmMRopIuEM0FfBUJrFPk6Ikj5YU6VAcQxg2LrFUfwDnR5IE_3gqd5zGpNJUKJBqtSrUrAv3cC6XP6SCycLOyNET4/s72-c/project+final+image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2501905160000140963</id><published>2012-08-31T16:55:00.003+08:00</published><updated>2013-04-17T05:53:10.574+08:00</updated><title type='text'>Difference among  IEnumerable , IQueryable, ICollection,IList, List</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;border: none; color: #17365d; font-family: Cambria, serif; font-size: 26pt; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html&quot; style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;INHERITANCE LIST:&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; margin-bottom: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;(most basic)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;-&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IQueryable&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&amp;lt;T&amp;gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;-&amp;gt;&lt;span class=&quot;GramE&quot;&gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;List&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&amp;lt;T&amp;gt;&lt;/b&gt;&amp;nbsp;(just an output format, and while it implements&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;T&amp;gt;, is not directly related to querying or&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IQueryable&lt;/span&gt;. )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;-&amp;gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;-&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt; -&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IDictionary&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;(An&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IDictionary&lt;/span&gt;&amp;nbsp;implementation is a collection of key-and-value pairs, like&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;theHashtable&lt;/span&gt;&amp;nbsp;class&lt;span class=&quot;GramE&quot;&gt;. )&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;-&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt; -&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;(An&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;implementation is a collection of values that can be sorted and whose members can be accessed by index, like the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ArrayList&lt;/span&gt;&amp;nbsp;class. In addition,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;implementations fall into three categories: read-only, fixed-size, variable-size. A read-only&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;cannot be modified. A fixed-size&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;does not allow the addition or removal of elements, but it allows the modification of existing elements. A variable-size&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;allows the addition, removal and modification of elements.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;If neither the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IDictionary&lt;/b&gt;&lt;/span&gt;&amp;nbsp;interface nor the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;interface meet&lt;/span&gt;&amp;nbsp;the requirements of the required collection, derive the new collection class from the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;ICollection&lt;/b&gt;&lt;/span&gt;&amp;nbsp;interface instead for more flexibility.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Some collections that limit access to their elements, like the Queue class and the Stack class, directly implement the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;nbsp;interface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;border: none; color: #17365d; font-family: Cambria, serif; font-size: 26pt; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h1 style=&quot;color: #365f91; font-size: 14pt; line-height: 21px; margin: 24pt 0in 0.0001pt; page-break-after: avoid;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 20pt; line-height: 31px;&quot;&gt;Approaches/Facilities List&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;of&amp;nbsp;&lt;span style=&quot;font-family: Cambria, serif; font-size: 14pt; line-height: 21px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&amp;nbsp;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IQueryable&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;,&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;, List:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 23pt; line-height: 35px;&quot;&gt;OR&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h1 style=&quot;color: #365f91; font-size: 14pt; line-height: 21px; margin: 24pt 0in 0.0001pt; page-break-after: avoid;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: Verdana, sans-serif; font-size: 20pt; line-height: 31px;&quot;&gt;Difference&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;among&amp;nbsp;&lt;span style=&quot;font-family: Cambria, serif; font-size: 14pt; line-height: 21px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&amp;lt;T&amp;gt; ,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IQueryable&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;,&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;, List&amp;lt;T&amp;gt;:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 20pt; line-height: 31px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;&quot;&gt;
In this topic I am going discuss about&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;T&lt;span class=&quot;GramE&quot;&gt;&amp;gt; ,&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Iqueryable&lt;/span&gt;&amp;lt;T&amp;gt; ,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;, List&amp;lt;T&amp;gt; generic’s pros and cons with fine tune differences in use of terms.&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;T&lt;span class=&quot;GramE&quot;&gt;&amp;gt; ,&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Iqueryable&lt;/span&gt;&amp;lt;T&amp;gt; ,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;, List&amp;lt;T&amp;gt; are collected from various sites like&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;stackoverflow&lt;/span&gt;&amp;nbsp;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;msdn&lt;/span&gt;&amp;nbsp;etc. This topic is a general summarization of those generics objects.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; style=&quot;color: purple;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;IENUMERABLE&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;The most generic item of all.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Still might use deferred execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;SpellE&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Segoe UI, sans-serif;&quot;&gt;&amp;nbsp;is best suitable for working with queries later on. It helps best when we try to add more queries with our previous one and we do not want to run our previous query in realtime&lt;/span&gt;&lt;span style=&quot;font-family: Segoe UI, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&amp;nbsp;but when we requested it or&amp;nbsp;&lt;/span&gt;iterated&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&amp;nbsp;through those or finally passing as a .ToList() object .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;
&lt;b style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;4.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;does not run query until it is requested by iteration.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;doesn’t move between items, it is forward only collection as&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;LinkedList&lt;/span&gt;.&amp;nbsp;You can&#39;t get at &quot;item 4&quot; without passing items 0-3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Read-only list, you can&#39;t add to it or remove from it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Actually the model binder is not able to bind an enumerable because it is a too generic Interface, and it is not able to choose a concrete class to create that implements the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.5in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.5in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/iqueryable.html&quot; style=&quot;color: purple;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;IQUERYABLE&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Query isn&#39;t executed until to really iterate over the items, maybe by doing a&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial;&quot;&gt;.&lt;span class=&quot;SpellE&quot;&gt;ToList&lt;/span&gt;()&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IQueryable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;best suits for remote data source, like a database or web service.&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IQueryable&lt;/span&gt;&amp;nbsp;is a very powerful feature that enables a variety of interesting deferred execution scenarios (like paging and composition based queries).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;avoid passing&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IQueryable&lt;/span&gt;&amp;nbsp;to Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;It is not a good place to handle errors...so better getting rid of delayed execution before passing to Views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal; text-transform: none;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/icollection.html&quot; style=&quot;color: purple;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-transform: uppercase;&quot;&gt;ICOLLECTION&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-transform: uppercase;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-transform: uppercase;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 40.5pt; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;GramE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13pt;&quot;&gt;Is between&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13pt;&quot;&gt;&amp;nbsp;In addition, is the base of&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IDictionary&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;Objects.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Considered the most basic type for collections.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;The&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;System.Xml.Serialization.XmlSerializer&lt;/span&gt;&amp;nbsp;class has specific requirements for types that implement&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;System.Collections.IEnumerable&lt;/span&gt;&amp;nbsp;in order to be&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;serializable&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Inherited from&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13pt;&quot;&gt;&amp;lt;T&amp;gt;.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;4.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Collection&amp;lt;T&lt;span class=&quot;GramE&quot;&gt;&amp;gt; ,&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IDictionary&lt;/span&gt;&amp;nbsp;all are inherited from this, so we have flexibility.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;5.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Base of&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IDictionary&lt;/span&gt;&amp;nbsp;Object.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;6.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Add, Delete and modify items in the collection is acceptable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;7.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Some collections that limit access to their elements, like the Queue class and the Stack class, directly implement the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;nbsp;interface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;8.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Normally in EF table relationships we use this&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;nbsp;in virtual keyword.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ICollection&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;doesn’t have indexing like&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;does.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ilist-or-list.html&quot; style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;ILIST&lt;/span&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #c00000; text-decoration: none;&quot;&gt;:&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Random access to the full list&lt;b&gt;(like an&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ArrayList&lt;/span&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Entirely in memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Best for model binding.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;4.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Supports adding and removing but for only variable-size one.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;5.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;An&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;implementation is a&amp;nbsp;&lt;b&gt;collection&lt;/b&gt;&amp;nbsp;of values that can be sorted and whose members&amp;nbsp;&lt;b&gt;can be&lt;/b&gt;&amp;nbsp;&lt;b&gt;accessed&lt;/b&gt;&amp;nbsp;by&amp;nbsp;&lt;b&gt;index&lt;/b&gt;, like the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;ArrayList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;6.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;In addition,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;implementations fall into three categories:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 1.5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;a)&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Read-only:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;(A read-only&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;cannot be modified)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 1.5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;b)&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Fixed-size:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;(A fixed-size&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;does not allow the addition or removal of elements, but it allows the modification of existing elements.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 1.5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;c)&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Variable-size:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;(A variable-size&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;IList&lt;/b&gt;&lt;/span&gt;&amp;nbsp;allows the addition, removal and modification of elements.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Memory Consuming.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;Style1&quot; style=&quot;border: none; color: #c00000; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-weight: bold; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in; text-transform: uppercase;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal; text-transform: none;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ilist-or-list.html&quot; style=&quot;color: purple;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #c00000; text-transform: uppercase;&quot;&gt;LIST&amp;lt;T&amp;gt;:&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #c00000; font-variant: normal !important; font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Propertise&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Implements :&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;The List&amp;lt;T&amp;gt; class is the generic equivalent of the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ArrayList&lt;/span&gt;&amp;nbsp;class. It implements the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt; generic interface using an array whose size is dynamically increased as required.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;In deciding whether to use the List&amp;lt;T&amp;gt; or&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ArrayList&lt;/span&gt;&amp;nbsp;class, both of which have similar functionality, remember that the List&amp;lt;T&amp;gt; class performs better in most cases and is type safe.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Methods such as&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;BinarySearch&lt;/span&gt;&amp;nbsp;and Sort use an ordering comparer for the list elements. The default comparer for type T is determined as follows. If type T implements the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IComparable&lt;/span&gt;&amp;lt;T&amp;gt; generic interface, then the default comparer is the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;span class=&quot;GramE&quot;&gt;CompareTo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;GramE&quot;&gt;(&lt;/span&gt;T) method of that interface; otherwise, if type T implements the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;nongeneric&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IComparable&lt;/span&gt;&amp;nbsp;interface, then the default comparer is the&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;CompareTo&lt;/span&gt;(Object) method of that interface. If type T implements neither interface, then there is no default comparer, and a comparer or comparison delegate must be provided explicitly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;List&amp;lt;T&amp;gt; accepts null as a valid value for reference types and&amp;nbsp;&lt;b&gt;allows duplicate elements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;The&amp;nbsp;&lt;b&gt;List&amp;lt;T&amp;gt; is not guaranteed to be sorted&lt;/b&gt;.&amp;nbsp;&lt;b&gt;You must sort&lt;/b&gt;&amp;nbsp;the List&amp;lt;T&amp;gt;&amp;nbsp;&lt;b&gt;before&lt;/b&gt;&amp;nbsp;performing operations (&lt;b&gt;such as&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;BinarySearch&lt;/span&gt;&lt;/b&gt;) that require the List&amp;lt;T&amp;gt; to be sorted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 58.5pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;READONLYCOLLECTION&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&amp;lt;T&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Propertise&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Implements :&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&amp;lt;T&amp;gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IList&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;ICollection&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IEnumerable&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; font-family: &#39;Times New Roman&#39;; margin-left: 0.75in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;List&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;lt;string&amp;gt; dinosaurs = new List&amp;lt;string&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;dinosaurs.Add&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&quot;Tyrannosaurus&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;dinosaurs.Add&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&quot;&lt;span class=&quot;SpellE&quot;&gt;Amargasaurus&lt;/span&gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;dinosaurs.Add&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&quot;&lt;span class=&quot;SpellE&quot;&gt;Deinonychus&lt;/span&gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;dinosaurs.Add&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&quot;&lt;span class=&quot;SpellE&quot;&gt;Compsognathus&lt;/span&gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;ReadOnlyCollection&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;lt;string&amp;gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;readOnlyDinosaurs&lt;/span&gt;&amp;nbsp;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;ReadOnlyCollection&lt;/b&gt;&lt;/span&gt;&amp;lt;string&amp;gt;(dinosaurs);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;SUMMARY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;background-color: black; background-position: initial initial; background-repeat: initial initial; border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 14pt;&quot;&gt;Non-Generic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: white; font-size: 14pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-color: black; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: solid solid solid none; border-top-color: windowtext; border-top-width: 1pt; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 14pt;&quot;&gt;Similar Generic Type&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: white; font-size: 14pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ArrayList&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;List&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Hashtable&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Dictionary&amp;lt;&lt;span class=&quot;SpellE&quot;&gt;TKey,TValue&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;SortedList&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;SortedList&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;&lt;span class=&quot;SpellE&quot;&gt;TKey,TValue&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Queue&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Queue&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Stack&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Stack&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ICollection&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; font-weight: normal; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;System.Xml.Serialization.XmlSerializer&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;N/A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ICollection&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IList&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IList&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;CollectionBase&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Collection&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ReadOnlyCollectionBase&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;ReadOnlyCollection&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&lt;/span&gt;&lt;span class=&quot;MsoIntenseReference&quot; style=&quot;color: #c0504d; font-variant: small-caps; font-weight: bold; letter-spacing: 0.25pt; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 26pt; font-variant: normal !important; text-transform: uppercase;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;DictionaryBase&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;N/A (just implement&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;IDictionary&lt;/span&gt;&amp;lt;&lt;span class=&quot;SpellE&quot;&gt;TKey,TValue&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;N/A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;SortedDictionary&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;&lt;span class=&quot;SpellE&quot;&gt;TKey,TValue&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;N/A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;KeyedCollection&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;&lt;span class=&quot;SpellE&quot;&gt;TKey,TItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-left-color: windowtext; border-left-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;N/A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; border-style: none solid solid none; padding: 0in 5.4pt; width: 4.7in;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;LinkedList&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;&amp;lt;T&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2501905160000140963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2012/08/difference-among-ienumerable-iqueryable_5620.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2501905160000140963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2501905160000140963'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2012/08/difference-among-ienumerable-iqueryable_5620.html' title='Difference among  IEnumerable&lt;T&gt; , IQueryable&lt;T&gt;, ICollection&lt;T&gt;,IList&lt;T&gt;, List&lt;T&gt;'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2115441094917671068</id><published>2012-08-31T15:45:00.001+08:00</published><updated>2012-08-31T16:06:27.833+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Benefits of IEnumerable"/><category scheme="http://www.blogger.com/atom/ns#" term="Cons of IEnumerable"/><category scheme="http://www.blogger.com/atom/ns#" term="IEnumerable"/><category scheme="http://www.blogger.com/atom/ns#" term="Pros and Cons of IEnumerable"/><category scheme="http://www.blogger.com/atom/ns#" term="Pros of IEnumerable"/><title type='text'>IEnumerable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0in 0in 4.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot;&gt;
&lt;span class=&quot;MsoIntenseReference&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;IEnumerable&amp;lt;T&amp;gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 12pt 0.25in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Pros&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The most generic item of all.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Still might use deferred(execute when needed) execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;IEnumerable is best suitable for working with in-memory
collection.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Cons&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;IEnumerable doesn’t move between
items, it is forward only collection as LinkedList.&amp;nbsp;You can&#39;t get at
&quot;item 4&quot; without passing items 0-3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Read-only list, you can&#39;t add to it
or remove from it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Actually the model binder is not
able to bind an enumerable because it is a too generic Interface, and it is not
able to choose a concrete class to create that implements the IEnumerable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;What is IEnumerable&amp;lt;T&amp;gt;? or Pros and Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
    &lt;strong&gt;What is IEnumerable?&lt;/strong&gt; , &lt;strong&gt;Pros&lt;/strong&gt; and &lt;strong&gt;Cons&lt;/strong&gt; of &lt;strong&gt;IEnumerable&lt;/strong&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
                IEnumerable&amp;lt;T&amp;gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Pros and Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Pros and Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Pros and Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
                &lt;strong&gt;Pros&lt;/strong&gt; and &lt;strong&gt;Cons&lt;/strong&gt; of &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;What is IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;What is IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;What is IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
                What is &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;How IEnumerable&amp;lt;T&amp;gt; works?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How IEnumerable&amp;lt;T&amp;gt; works?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;How IEnumerable&amp;lt;T&amp;gt; works?&quot;&gt;
                How &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt;? works?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;How to use IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How to use IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;How to use IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;How&lt;/strong&gt; to &lt;strong&gt;use&lt;/strong&gt; &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Benefits of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Benefits of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Benefits of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;Benefits of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Benefit use of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Benefit use of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Benefit use of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;Benefit use of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Pros of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Pros of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Pros of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;Pros of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Cons of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Cons of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Cons of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;Cons of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Best use of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Best use of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
            &lt;a href=&quot;http://auk-port.blogspot.com/2012/08/ienumerable.html&quot; title=&quot;Best use  of IEnumerable&amp;lt;T&amp;gt;?&quot;&gt;
                &lt;strong&gt;Best use of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt;&amp;lt;T&amp;gt;?
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;
&lt;strong&gt;SEO&lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt; for &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt;?:
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;IEnumerable&quot;&gt;
        &lt;strong&gt;IEnumerable&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;strong&gt;IEnumerable&amp;lt;T&amp;gt;&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;IEnumerable&amp;lt;T&amp;gt; Pros and Cons&quot;&gt;
        &lt;strong&gt;IEnumerable&lt;/strong&gt;&amp;lt;T&amp;gt; &lt;strong&gt;Pros&lt;/strong&gt; and &lt;strong&gt;Cons&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Pros and Cons&quot;&gt;
        &lt;strong&gt;Pros&lt;/strong&gt; and &lt;strong&gt;Cons&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Pros and Cons of IEnumerable&quot;&gt;
        &lt;strong&gt;Pros and Cons of &lt;em&gt;IEnumerable&lt;/em&gt;&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Pros and Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;strong&gt;Pros and Cons of &lt;em&gt;IEnumerable&lt;/em&gt;&amp;lt;T&amp;gt;&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Cons of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;strong&gt;Cons of &lt;em&gt;IEnumerable&lt;/em&gt;&amp;lt;T&amp;gt;&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Pros of IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;strong&gt;Pros of &lt;em&gt;IEnumerable&lt;/em&gt;&amp;lt;T&amp;gt;&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; title=&quot;Benefits of using IEnumerable&amp;lt;T&amp;gt;&quot;&gt;
        &lt;strong&gt;Benefits of using &lt;em&gt;IEnumerable&lt;/em&gt;&amp;lt;T&amp;gt;&lt;/strong&gt; 
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2115441094917671068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2012/08/ienumerable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2115441094917671068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2115441094917671068'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2012/08/ienumerable.html' title='IEnumerable&lt;T&gt;'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-8537786934298072013</id><published>2012-08-31T14:25:00.003+08:00</published><updated>2012-08-31T14:48:18.551+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Inherit"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance List of ICollection"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance List of IEnumerable"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance List of IList"/><title type='text'>Inheritance List of IEnumerable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 16pt; font-weight: bold; margin: 0in 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 26pt; letter-spacing: 0.25pt;&quot;&gt;Inheritance List IEmurable:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; padding: 0in 0in 2pt;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border: none; font-family: Calibri, sans-serif; font-size: 1pt; margin: 2pt 0in 0.0001pt; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 1pt; margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-width: 1pt; border-style: none none solid; padding: 0in 0in 4pt;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;border: none; color: #17365d; font-family: Calibri, sans-serif; font-size: 26pt; letter-spacing: 0.25pt; margin: 0in 0in 15pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Inheritance List IEmurable:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-bottom: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable (most basic) &amp;nbsp;everything inherits from interface.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable-&amp;gt;&amp;nbsp;&lt;b&gt;IQueryable&amp;lt;T&amp;gt;(means&amp;nbsp;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 16px;&quot;&gt;IQueryable&amp;lt;T&amp;gt; inherits from&amp;nbsp;&lt;/b&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 16px;&quot;&gt;IEnumerable&amp;lt;T&amp;gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable-&amp;gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;List&amp;lt;T&amp;gt;&lt;/b&gt;&amp;nbsp;(just an output format, and while it implements IEnumerable&amp;lt;T&amp;gt;, is not directly related to querying or IQueryable. )&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable-&amp;gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;ICollection&amp;lt;T&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable-&amp;gt;&amp;nbsp;ICollection&amp;lt;T&amp;gt; -&amp;gt;&amp;nbsp;&lt;b&gt;IDictionary&amp;nbsp;&lt;/b&gt;(An IDictionary implementation is a collection of key-and-value pairs, like theHashtable class. )&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;IEnumerable-&amp;gt;&amp;nbsp;ICollection&amp;lt;T&amp;gt; -&amp;gt;&amp;nbsp;&lt;b&gt;IList&amp;nbsp;&lt;/b&gt;(An IList implementation is a collection of values that can be sorted and whose members can be accessed by index, like the ArrayList class. In addition, IList implementations fall into three categories: read-only, fixed-size, variable-size. A read-only IList cannot be modified. A fixed-size IList does not allow the addition or removal of elements, but it allows the modification of existing elements. A variable-size IList allows the addition, removal and modification of elements.)&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;If neither the&amp;nbsp;&lt;b&gt;IDictionary&lt;/b&gt;&amp;nbsp;interface nor the&amp;nbsp;&lt;b&gt;IList&lt;/b&gt;&amp;nbsp;interface meet the requirements of the required collection, derive the new collection class from the&amp;nbsp;&lt;b&gt;ICollection&lt;/b&gt;&amp;nbsp;interface instead for more flexibility.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12pt;&quot;&gt;Some collections that limit access to their elements, like the Queue class and the Stack class, directly implement the ICollection interface.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;h1 title=&quot;Inheritance List of IEnumerable, Inheritance List of IList,  Inheritance List of ICollection , Inheritance List of IDictionary&quot; style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
    &lt;strong&gt;Inheritance List of IEnumerable&lt;/strong&gt;, &lt;strong&gt;Inheritance List of IList&lt;/strong&gt;,  &lt;strong&gt;Inheritance List of ICollection&lt;/strong&gt; , &lt;strong&gt;Inheritance List of IDictionary&lt;/strong&gt;:
&lt;/h1&gt;
&lt;ul&gt;
    &lt;li  title=&quot;Inheritance List Of IEnumerable&quot;&gt;
        &lt;h1 title=&quot;Inheritance List Of IEnumerable&quot; style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
            &lt;a title=&quot;Inheritance List Of IEnumerable&quot; href=&quot;http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html&quot;&gt;
                &lt;strong&gt;Inheritance List Of IEnumerable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
    &lt;/li&gt;
    
    &lt;li  title=&quot;Which objects inherited from IEnumerable&lt;T&gt;?&quot;&gt;
        &lt;h1 title=&quot;Which objects inherited from IEnumerable&lt;T&gt;?&quot; style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
            &lt;a title=&quot;Which objects inherited from IEnumerable&lt;T&gt;?&quot; href=&quot;http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html&quot;&gt;
                &lt;strong&gt;Which objects inherited from IEnumerable&amp;lt;T&amp;gt;?&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
    &lt;/li&gt;
   
   &lt;li  title=&quot;Inherihance of IEnumerable&lt;T&gt;&quot;&gt;
        &lt;h1 title=&quot;Inherihance of IEnumerable&lt;T&gt;&quot; style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
            &lt;a title=&quot;Inherihance of IEnumerable&lt;T&gt;&quot; href=&quot;http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html&quot;&gt;
                &lt;strong&gt;Inherihance of IEnumerable&amp;lt;T&amp;gt;&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
    &lt;/li&gt;
    
    &lt;li  title=&quot;IEnumerable&lt;T&gt; Inheritance List&quot;&gt;
        &lt;h1 title=&quot;IEnumerable&lt;T&gt; Inheritance List&quot; style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
            &lt;a title=&quot;IEnumerable&lt;T&gt; Inheritance List&quot; href=&quot;http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html&quot;&gt;
                &lt;strong&gt;&lt;em&gt;IEnumerable&amp;lt;T&amp;gt;&lt;/em&gt; &lt;em&gt;Inheritance&lt;/em&gt; List&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
    &lt;/li&gt;
&lt;/ul&gt;   
 
&lt;span style=&quot;font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;
&lt;strong&gt;SEO&lt;/strong&gt; Labels for &lt;strong&gt;Inheritance List Of IEnumerable&lt;/strong&gt;:
&lt;/span&gt; &lt;br /&gt;  
&lt;div style=&quot;display: inline; float:left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
    &lt;h1 title=&quot;Inherihance of IEnumerable&lt;T&gt;&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
        Inherihance of IEnumerable&amp;lt;T&amp;gt; ,
    &lt;/h1&gt;   
     &lt;h1 title=&quot;IEnumerable&lt;T&gt; Inheritance List&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;&lt;em&gt;IEnumerable&amp;lt;T&amp;gt;&lt;/em&gt; &lt;em&gt;Inheritance&lt;/em&gt; List&lt;/strong&gt; ,
    &lt;/h1&gt;     
    &lt;h1 title=&quot;Inheritance&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;Inheritance&lt;/strong&gt; ,
    &lt;/h1&gt;    
    &lt;h1 title=&quot;Inherit&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;Inherit&lt;/strong&gt; ,
    &lt;/h1&gt;  
    &lt;h1 title=&quot;IEnumerable&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;IEnumerable&lt;/strong&gt; ,
    &lt;/h1&gt; 
    &lt;h1 title=&quot;IList&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;IList&lt;/strong&gt; ,
    &lt;/h1&gt; 
    &lt;h1 title=&quot;ICollection&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;ICollection&lt;/strong&gt; ,
    &lt;/h1&gt; 
    &lt;h1 title=&quot;IDictionary&quot; style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: inherit;&quot; &gt;
         &lt;strong&gt;IDictionary&lt;/strong&gt; 
    &lt;/h1&gt; 
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/8537786934298072013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8537786934298072013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8537786934298072013'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2012/08/inheritance-list-of-ienumerable.html' title='Inheritance List of IEnumerable'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-8910028632267960807</id><published>2011-11-20T04:39:00.001+08:00</published><updated>2011-11-20T04:53:23.310+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer Put in TaskBar"/><category scheme="http://www.blogger.com/atom/ns#" term="MyComputer"/><category scheme="http://www.blogger.com/atom/ns#" term="Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7 SP1"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Vista"/><category scheme="http://www.blogger.com/atom/ns#" term="Windwos 8"/><title type='text'>Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: -webkit-auto;&quot;&gt;



&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-color: white; color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;It is very easy , right click on the folder icon in the taskbar and then right click on the &lt;b&gt;&quot;Windows&amp;nbsp;Explorer&quot;&lt;/b&gt; item and then click on the&amp;nbsp;properties. Which will give you a display like below:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f6fafb; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqLr5XCRSSGi2igBKbnS4RuJnk5A-3ZECAfFADKQGs04qbdXC4-75apzP09vfUdUafJK3QhV7R1bspMK6IPm6ulbjrOy4d0Uy-vVwQqcZCyju7yTq-ZddWB_h4nx3M3_3t5sgcqlHqYgOt/s1600/Put+MyComputer+or+Computer+in+Windows+7%2527s+or+Windows+Vista+Taskbar+or+Task-bar%252C+myComputer+shortcut+propertise+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqLr5XCRSSGi2igBKbnS4RuJnk5A-3ZECAfFADKQGs04qbdXC4-75apzP09vfUdUafJK3QhV7R1bspMK6IPm6ulbjrOy4d0Uy-vVwQqcZCyju7yTq-ZddWB_h4nx3M3_3t5sgcqlHqYgOt/s640/Put+MyComputer+or+Computer+in+Windows+7%2527s+or+Windows+Vista+Taskbar+or+Task-bar%252C+myComputer+shortcut+propertise+1.png&quot; width=&quot;451&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar 1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;And then to p&lt;/span&gt;&lt;span style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;ut MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;replace &lt;/b&gt;that target link with this below line:&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;background-color: white; color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&quot;%windir%\explorer.exe shell:MyComputerFolder&quot;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: #f6fafb; color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguAooySB6EZe8pTeR2aNCBcZLvTbAlvVstK_gfAickrNqQn3EQjSUdNceP65_iMrKavX9kTHlWC9STK303-ee_9DwxAU8MjiO1aXh1kJJFQttt7YnjuM7S4FLtdD9mr1Egeat9HoKBRdWu/s1600/Put+MyComputer+or+Computer+in+Windows+7%2527s+or+Windows+Vista+Taskbar+or+Task-bar%252C+myComputer+shortcut+propertise+2+complete.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguAooySB6EZe8pTeR2aNCBcZLvTbAlvVstK_gfAickrNqQn3EQjSUdNceP65_iMrKavX9kTHlWC9STK303-ee_9DwxAU8MjiO1aXh1kJJFQttt7YnjuM7S4FLtdD9mr1Egeat9HoKBRdWu/s640/Put+MyComputer+or+Computer+in+Windows+7%2527s+or+Windows+Vista+Taskbar+or+Task-bar%252C+myComputer+shortcut+propertise+2+complete.png&quot; width=&quot;454&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;So, I am assuming that you have successfully&amp;nbsp;implemented it. Therefore, you can visit your my computer using that&amp;nbsp;&lt;b style=&quot;color: #323232; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: small; text-align: -webkit-auto;&quot;&gt;&quot;Windows&amp;nbsp;Explorer&quot; shortcut.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/8910028632267960807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/11/put-mycomputercomputer-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8910028632267960807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8910028632267960807'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/11/put-mycomputercomputer-in-windows.html' title='Put MyComputer/Computer in Windows 7&#39;s/Windows Vista Taskbar/Task-bar'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqLr5XCRSSGi2igBKbnS4RuJnk5A-3ZECAfFADKQGs04qbdXC4-75apzP09vfUdUafJK3QhV7R1bspMK6IPm6ulbjrOy4d0Uy-vVwQqcZCyju7yTq-ZddWB_h4nx3M3_3t5sgcqlHqYgOt/s72-c/Put+MyComputer+or+Computer+in+Windows+7%2527s+or+Windows+Vista+Taskbar+or+Task-bar%252C+myComputer+shortcut+propertise+1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2689461301258507858</id><published>2011-11-09T21:45:00.002+08:00</published><updated>2011-11-09T21:46:33.264+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 Service Pack 1"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 SP1"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 SP1 Installation Failed"/><category scheme="http://www.blogger.com/atom/ns#" term="VisualStudio 2010 SP1"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010 SP1"/><title type='text'>Install VS2010 SP1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1&gt;









Install VS2010 SP1&lt;/h1&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s1600/VS2010+SP1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s640/VS2010+SP1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you had tried many times installing &lt;b&gt;Visual Studio 2010&lt;/b&gt;(VS 2010) Service Pack 1(&lt;b&gt;SP1&lt;/b&gt;) and &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;failed&lt;/span&gt;&lt;/u&gt; &lt;/b&gt;then this is is the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;u&gt;right place&lt;/u&gt;&lt;/b&gt;&lt;/span&gt; for you. As you may have already known that you &lt;u&gt;&lt;b&gt;must&lt;/b&gt;&lt;/u&gt; &lt;u&gt;&lt;b&gt;keep&lt;/b&gt;&lt;/u&gt; the installation of VS2010 Beta or VS2010 Ultimate to install the VS2010 SP1.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
So now, I am assuming that you have already installed&amp;nbsp;&lt;b&gt;VS2010 &lt;/b&gt;Beta or &lt;b&gt;VS2010 &lt;/b&gt;Ultimate and besides this you should download&amp;nbsp;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=210710&quot;&gt;Visual Studio 2010&amp;nbsp;SP1 ISO Format&lt;/a&gt;&amp;nbsp;(my&amp;nbsp;recommendation) or the &lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&amp;nbsp;( if you use &lt;b&gt;.iso&lt;/b&gt;&amp;nbsp;format then you should install this as a next step for latest features) to install &lt;b&gt;Visual Studio 2010 SP1&lt;/b&gt;. And once again you will be failed again installing Visual Studio 2010 SP1(Service Pack 1), so what&#39;s &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;wrong&lt;/span&gt;&lt;/b&gt; again? My answer is &#39;nothing&#39;; you did everything you could but unfortunately microsoft made some mistakes in their repositories and that is why your installation is not going well.&lt;b&gt; So what is the solution to your problem&lt;/b&gt;? Actually , it is pretty easy , and to solve your problem you have to download two more components to make it work . One of them is&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=8363&quot;&gt;Entity Framework 4.1&lt;/a&gt;&amp;nbsp;(must install to complete the VS2010 SP1 installation process) and the other one is&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=18116&quot;&gt;Microsoft ADO.NET Entity Framework Feature&lt;/a&gt;&amp;nbsp;( second important&amp;nbsp;component&amp;nbsp;to complete the&amp;nbsp;installation&amp;nbsp; ).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hopefully , it will help and work(run&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&amp;nbsp;to see if it is successfully done)&amp;nbsp;&amp;nbsp;and if it doesn&#39;t then please leave a feedback, I will help you as soon as possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Download:&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=23691&quot;&gt;Visual Studio 2010 SP1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=210710&quot;&gt;Visual Studio 2010&amp;nbsp;SP1 ISO Format&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=8363&quot;&gt;Entity Framework 4.1&lt;/a&gt; (must install to complete the VS2010 SP1 installation process)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=18116&quot;&gt;Microsoft ADO.NET Entity Framework Feature&lt;/a&gt; ( second important&amp;nbsp;component&amp;nbsp;to complete the&amp;nbsp;installation&amp;nbsp; )&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
-------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Visual Studio 2010 SP1(Service Pack 1)&quot;&gt;









    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;
                &lt;strong&gt;How to install Visual Studio 2010 SP1(Service Pack 1)?&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;
                &lt;strong&gt;How to install VS 2010 SP1(Service Pack 1)?&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1&quot;&gt;
                &lt;strong&gt;VS 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1&quot;&gt;
                &lt;strong&gt;VS2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 Service Pack 1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;
                &lt;strong&gt;VS2010 Service Pack 1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 ServicePack 1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 ServicePack 1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 ServicePack 1&quot;&gt;
                &lt;strong&gt;VS2010 ServicePack 1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010SP1&quot;&gt;
                &lt;strong&gt;VS2010SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS Ultimate 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS Ultimate 2010 SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS Ultimate 2010 SP1&quot;&gt;
                &lt;strong&gt;VS Ultimate 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;
                &lt;strong&gt;Visual Studio Ultimate 2010 SP1 Installation&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;
                &lt;strong&gt;Visual Studio Ultimate 2010 SP1 Installation Failed&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;
                &lt;strong&gt;VS 2010 SP1 Installation Failed&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;
                &lt;strong&gt;VS 2010 SP1 Failed Installation Suggestion&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1 Failed Installation&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Failed Installation&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1 Failed Installation&quot;&gt;
                &lt;strong&gt;VS2010 SP1 Failed Installation&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1 Successfully Install&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Successfully Install&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1 Successfully Install&quot;&gt;
                &lt;strong&gt;VS2010 SP1 Successfully Install&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio 2010 SP1&quot;&gt;
                &lt;strong&gt;Visual Studio 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;









            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;
                &lt;strong&gt;Visual Studio 2010 Ultimate SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px; margin-top: 2px;&quot;&gt;
&lt;strong&gt;Search Engine Friendly&lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt;:
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1&quot;&gt;









       &lt;strong&gt;VS2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;









       &lt;strong&gt;VS2010 Service Pack 1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;









       &lt;strong&gt;Visual Studio 2010 Ultimate SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate Service Pack1&quot;&gt;









       &lt;strong&gt;Visual Studio 2010 Ultimate Service Pack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate ServicePack1&quot;&gt;









       &lt;strong&gt;Visual Studio 2010 Ultimate ServicePack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio 2010 Ultimate ServicePack1&quot;&gt;









       &lt;strong&gt;VisualStudio 2010 Ultimate ServicePack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio 2010 SP1&quot;&gt;









       &lt;strong&gt;VisualStudio 2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio Ultimate 2010 SP1&quot;&gt;









       &lt;strong&gt;VisualStudio Ultimate 2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010SP1&quot;&gt;









       &lt;strong&gt;VS2010SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Installation&quot;&gt;









       &lt;strong&gt;VS2010 SP1 Installation&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack1 Installation Failed&quot;&gt;









       &lt;strong&gt;VS2010 Service Pack1 Installation Failed&lt;/strong&gt; 
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2689461301258507858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/11/install-vs2010-sp1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2689461301258507858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2689461301258507858'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/11/install-vs2010-sp1.html' title='Install VS2010 SP1'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s72-c/VS2010+SP1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-8756829973975298922</id><published>2011-10-29T00:36:00.001+08:00</published><updated>2011-10-29T12:54:19.369+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="Installation Failed"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 Service Pack 1"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 SP1"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2010 SP1 Installation Failed"/><category scheme="http://www.blogger.com/atom/ns#" term="VisualStudio 2010 SP1"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010 SP1"/><title type='text'>How to install VS 2010 SP 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1&gt;







How to install VS 2010 SP 1&lt;/h1&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s1600/VS2010+SP1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s640/VS2010+SP1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you had tried many times installing &lt;b&gt;Visual Studio 2010&lt;/b&gt;(VS 2010) Service Pack 1(&lt;b&gt;SP1&lt;/b&gt;) and &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;failed&lt;/span&gt;&lt;/u&gt; &lt;/b&gt;then this is is the &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;u&gt;right place&lt;/u&gt;&lt;/b&gt;&lt;/span&gt; for you. As you may have already known that you &lt;u&gt;&lt;b&gt;must&lt;/b&gt;&lt;/u&gt; &lt;u&gt;&lt;b&gt;keep&lt;/b&gt;&lt;/u&gt; the installation of VS2010 Beta or VS2010 Ultimate to install the VS2010 SP1.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
So now, I am assuming that you have already installed&amp;nbsp;&lt;b&gt;VS2010 &lt;/b&gt;Beta or &lt;b&gt;VS2010 &lt;/b&gt;Ultimate and besides this you should download&amp;nbsp;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=210710&quot;&gt;Visual Studio 2010&amp;nbsp;SP1 ISO Format&lt;/a&gt;&amp;nbsp;(my&amp;nbsp;recommendation) or the &lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&amp;nbsp;( if you use &lt;b&gt;.iso&lt;/b&gt;&amp;nbsp;format then you should install this as a next step for latest features) to install &lt;b&gt;Visual Studio 2010 SP1&lt;/b&gt;. And once again you will be failed again installing Visual Studio 2010 SP1(Service Pack 1), so what&#39;s &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;wrong&lt;/span&gt;&lt;/b&gt; again? My answer is &#39;nothing&#39;; you did everything you could but unfortunately microsoft made some mistakes in their repositories and that is why your installation is not going well.&lt;b&gt; So what is the solution to your problem&lt;/b&gt;? Actually , it is pretty easy , and to solve your problem you have to download two more components to make it work . One of them is&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=8363&quot;&gt;Entity Framework 4.1&lt;/a&gt;&amp;nbsp;(must install to complete the VS2010 SP1 installation process) and the other one is&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=18116&quot;&gt;Microsoft ADO.NET Entity Framework Feature&lt;/a&gt;&amp;nbsp;( second important&amp;nbsp;component&amp;nbsp;to complete the&amp;nbsp;installation&amp;nbsp; ).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hopefully , it will help and work(run&amp;nbsp;&lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&amp;nbsp;to see if it is successfully done)&amp;nbsp;&amp;nbsp;and if it doesn&#39;t then please leave a feedback, I will help you as soon as possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Download:&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=23691&quot;&gt;Visual Studio 2010 SP1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=210710&quot;&gt;Visual Studio 2010&amp;nbsp;SP1 ISO Format&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Microsoft Web Platform Installer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=8363&quot;&gt;Entity Framework 4.1&lt;/a&gt; (must install to complete the VS2010 SP1 installation process)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?id=18116&quot;&gt;Microsoft ADO.NET Entity Framework Feature&lt;/a&gt; ( second important&amp;nbsp;component&amp;nbsp;to complete the&amp;nbsp;installation&amp;nbsp; )&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
-------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Visual Studio 2010 SP1(Service Pack 1)&quot;&gt;







    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;How to install Visual Studio 2010 SP1(Service Pack 1)?&quot;&gt;
                &lt;strong&gt;How to install Visual Studio 2010 SP1(Service Pack 1)?&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;How to install VS 2010 SP1(Service Pack 1)?&quot;&gt;
                &lt;strong&gt;How to install VS 2010 SP1(Service Pack 1)?&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1&quot;&gt;
                &lt;strong&gt;VS 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1&quot;&gt;
                &lt;strong&gt;VS2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 Service Pack 1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;
                &lt;strong&gt;VS2010 Service Pack 1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 ServicePack 1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 ServicePack 1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 ServicePack 1&quot;&gt;
                &lt;strong&gt;VS2010 ServicePack 1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010SP1&quot;&gt;
                &lt;strong&gt;VS2010SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS Ultimate 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS Ultimate 2010 SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS Ultimate 2010 SP1&quot;&gt;
                &lt;strong&gt;VS Ultimate 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation&quot;&gt;
                &lt;strong&gt;Visual Studio Ultimate 2010 SP1 Installation&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio Ultimate 2010 SP1 Installation Failed&quot;&gt;
                &lt;strong&gt;Visual Studio Ultimate 2010 SP1 Installation Failed&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1 Installation Failed&quot;&gt;
                &lt;strong&gt;VS 2010 SP1 Installation Failed&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS 2010 SP1 Failed Installation Suggestion&quot;&gt;
                &lt;strong&gt;VS 2010 SP1 Failed Installation Suggestion&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1 Failed Installation&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Failed Installation&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1 Failed Installation&quot;&gt;
                &lt;strong&gt;VS2010 SP1 Failed Installation&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;VS2010 SP1 Successfully Install&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Successfully Install&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;VS2010 SP1 Successfully Install&quot;&gt;
                &lt;strong&gt;VS2010 SP1 Successfully Install&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio 2010 SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio 2010 SP1&quot;&gt;
                &lt;strong&gt;Visual Studio 2010 SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;
                &lt;strong&gt;Visual Studio 2010 Ultimate SP1&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px; margin-top: 2px;&quot;&gt;
&lt;strong&gt;Search Engine Friendly&lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt;:
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1&quot;&gt;







       &lt;strong&gt;VS2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack 1&quot;&gt;







       &lt;strong&gt;VS2010 Service Pack 1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate SP1&quot;&gt;







       &lt;strong&gt;Visual Studio 2010 Ultimate SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate Service Pack1&quot;&gt;







       &lt;strong&gt;Visual Studio 2010 Ultimate Service Pack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Visual Studio 2010 Ultimate ServicePack1&quot;&gt;







       &lt;strong&gt;Visual Studio 2010 Ultimate ServicePack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio 2010 Ultimate ServicePack1&quot;&gt;







       &lt;strong&gt;VisualStudio 2010 Ultimate ServicePack1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio 2010 SP1&quot;&gt;







       &lt;strong&gt;VisualStudio 2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VisualStudio Ultimate 2010 SP1&quot;&gt;







       &lt;strong&gt;VisualStudio Ultimate 2010 SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010SP1&quot;&gt;







       &lt;strong&gt;VS2010SP1&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 SP1 Installation&quot;&gt;







       &lt;strong&gt;VS2010 SP1 Installation&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;VS2010 Service Pack1 Installation Failed&quot;&gt;







       &lt;strong&gt;VS2010 Service Pack1 Installation Failed&lt;/strong&gt; 
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/8756829973975298922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8756829973975298922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8756829973975298922'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/10/how-to-install-vs-2010-sp-1.html' title='How to install VS 2010 SP 1'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTlah7-1c6GZqH0OPRkGGC_E1J5NMntGK4nF_3BlYmjj65Z27TijWqbXKVex55h9qgIXRInObYj0LVlfGqsxdzM2vafwFgnODvrCTE0jepXEnfLG69-w4YX5xK7VJxc0ly513zSKFn-TW4/s72-c/VS2010+SP1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-1617429024313445218</id><published>2011-10-20T13:10:00.000+08:00</published><updated>2011-10-21T13:49:40.310+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap Numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables using memory"/><category scheme="http://www.blogger.com/atom/ns#" term="swap without third variable"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping without using third variable"/><title type='text'>Swapping</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;w:sdt docpart=&quot;B04D5463105B456FB78020156A48EE7E&quot; id=&quot;89512082&quot; storeitemid=&quot;X_29D85171-8ECF-41ED-AACD-BF2B7EB19406&quot; text=&quot;t&quot; title=&quot;Post Title&quot; xpath=&quot;/ns0:BlogPostInfo/ns0:PostTitle&quot;&gt;
 &lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;Publishwithline&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;








&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;Swapping&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;background-color: white; border-bottom-style: solid; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;background-color: white; color: #333333; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are many ways to handle a swap operation; moreover,
people have reason to believe that bitwise swapping is faster and more
efficient than other methods; however, I strongly &lt;b&gt;disagree&lt;/b&gt; with them. Only with the oldest microprocessor, people can
have their desire effectiveness using bitwise operation but in modern processor
architecture, bitwise operations can perform as faster as adding or subtracting
operation. &lt;b&gt;Consequently, for bitwise
operators like XOR(^) have more operations than simple addition or subtraction ;
as a result , it seems that addition is the best way to go.&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;Please &lt;b&gt;save the file in (.cpp)&lt;/b&gt; format for &lt;b&gt;Code::Blocks&lt;/b&gt;, Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #F2F2F2; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* |
  Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler
  |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 7pt;&quot;&gt;Example of Swapping in C/C++, Save in .cpp&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include
  &amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;XOR(Bitwise Swapping)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;//no
  need to change if a=b, and &lt;b&gt;this
  condition is must for XOR&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using addition and subtraction&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;+&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using multiplication , division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #d9d9d9; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  10 , b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; 12&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;backup_a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a , backup_b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , backup_b ,
  a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address(a , b)&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location by sending only value
  to a function :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, b=%d\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a , backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using XOR :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d)
  to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot; , backup_a , backup_b ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using addition, subtraction :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using multiplication, division :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Swapping Algorithm&quot;&gt;







    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;Swap variable using XOR&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using XOR&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;(+)
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable without the third&quot;&gt;
                &lt;strong&gt;Swap variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using bitwise operator&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third&quot;&gt;
                &lt;strong&gt;Swapping variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable&quot;&gt;
                &lt;strong title=&quot;Swapping&quot;&gt;Swapping&lt;/strong&gt; &lt;strong title=&quot;numbers&quot;&gt;numbers&lt;/strong&gt; &lt;strong title=&quot;without&quot;&gt;without&lt;/strong&gt; &lt;strong title=&quot;third&quot;&gt;third&lt;/strong&gt; &lt;strong title=&quot;variable&quot;&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third in C&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third in C&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third in C&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; the &lt;strong&gt;third&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+) in C++&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;
                &lt;strong title=&quot;Swap variable using addition(+) in C++&quot;&gt;Swap variable using addition(+) in C++&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variables using addition(+) without the third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;number&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Author Alim Ul Karim&quot;&gt;







    Author:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;About Author :Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/p/aurthor.html&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;
                About &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Google Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Google Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;https://www.google.com/search?q=alim+ul+karim&quot; title=&quot;Google Alim Ul Karim&quot;&gt;
                Google &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;







            &lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
                &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;&#39;s Portfolio
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot; title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;Search Engine Friendly&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;Labels&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition without the third variable&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C++&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C++&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++ &lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping without using the third varible in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;varible&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using division operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;division&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using multiplication operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;multiplication&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR (^) operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; (^) &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap XOR&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;XOR(^)&quot;&gt;







       &lt;strong&gt;XOR&lt;/strong&gt;&lt;strong&gt;(^)&lt;/strong&gt;
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/1617429024313445218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1617429024313445218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1617429024313445218'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping.html' title='Swapping'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-3162202840527188450</id><published>2011-10-20T13:08:00.002+08:00</published><updated>2011-10-21T13:49:40.320+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap Numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables using memory"/><category scheme="http://www.blogger.com/atom/ns#" term="swap without third variable"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping without using third variable"/><title type='text'>Swap in C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;w:sdt docpart=&quot;B04D5463105B456FB78020156A48EE7E&quot; id=&quot;89512082&quot; storeitemid=&quot;X_29D85171-8ECF-41ED-AACD-BF2B7EB19406&quot; text=&quot;t&quot; title=&quot;Post Title&quot; xpath=&quot;/ns0:BlogPostInfo/ns0:PostTitle&quot;&gt;
 &lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;Publishwithline&quot;&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;








&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;Swap in C&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;background-color: white; border-bottom-style: solid; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;background-color: white; color: #333333; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are many ways to handle a swap operation; moreover,
people have reason to believe that bitwise swapping is faster and more
efficient than other methods; however, I strongly &lt;b&gt;disagree&lt;/b&gt; with them. Only with the oldest microprocessor, people can
have their desire effectiveness using bitwise operation but in modern processor
architecture, bitwise operations can perform as faster as adding or subtracting
operation. &lt;b&gt;Consequently, for bitwise
operators like XOR(^) have more operations than simple addition or subtraction ;
as a result , it seems that addition is the best way to go.&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;Please &lt;b&gt;save the file in (.cpp)&lt;/b&gt; format for &lt;b&gt;Code::Blocks&lt;/b&gt;, Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #F2F2F2; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* |
  Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler
  |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 7pt;&quot;&gt;Example of Swapping in C/C++, Save in .cpp&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include
  &amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;XOR(Bitwise Swapping)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;//no
  need to change if a=b, and &lt;b&gt;this
  condition is must for XOR&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using addition and subtraction&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;+&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using multiplication , division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #d9d9d9; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  10 , b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; 12&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;backup_a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a , backup_b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , backup_b ,
  a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address(a , b)&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location by sending only value
  to a function :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, b=%d\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a , backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using XOR :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d)
  to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot; , backup_a , backup_b ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using addition, subtraction :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using multiplication, division :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Swapping Algorithm&quot;&gt;







    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;Swap variable using XOR&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using XOR&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;(+)
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable without the third&quot;&gt;
                &lt;strong&gt;Swap variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using bitwise operator&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third&quot;&gt;
                &lt;strong&gt;Swapping variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable&quot;&gt;
                &lt;strong title=&quot;Swapping&quot;&gt;Swapping&lt;/strong&gt; &lt;strong title=&quot;numbers&quot;&gt;numbers&lt;/strong&gt; &lt;strong title=&quot;without&quot;&gt;without&lt;/strong&gt; &lt;strong title=&quot;third&quot;&gt;third&lt;/strong&gt; &lt;strong title=&quot;variable&quot;&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third in C&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third in C&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third in C&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; the &lt;strong&gt;third&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+) in C++&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;
                &lt;strong title=&quot;Swap variable using addition(+) in C++&quot;&gt;Swap variable using addition(+) in C++&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variables using addition(+) without the third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;number&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Author Alim Ul Karim&quot;&gt;







    Author:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;About Author :Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/p/aurthor.html&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;
                About &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Google Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Google Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;https://www.google.com/search?q=alim+ul+karim&quot; title=&quot;Google Alim Ul Karim&quot;&gt;
                Google &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;







            &lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
                &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;&#39;s Portfolio
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot; title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot; title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;Search Engine Friendly&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;Labels&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition without the third variable&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C++&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C++&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++ &lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping without using the third varible in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;varible&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using division operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;division&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using multiplication operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;multiplication&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR (^) operator&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; (^) &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap XOR&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;XOR(^)&quot;&gt;







       &lt;strong&gt;XOR&lt;/strong&gt;&lt;strong&gt;(^)&lt;/strong&gt;
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/3162202840527188450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/10/swap-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/3162202840527188450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/3162202840527188450'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/10/swap-in-c.html' title='Swap in C'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-35372322287382711</id><published>2011-10-20T11:54:00.000+08:00</published><updated>2011-10-21T13:49:40.334+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap Numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables using memory"/><category scheme="http://www.blogger.com/atom/ns#" term="swap without third variable"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping without using third variable"/><title type='text'>Swapping Algorithms in C/C++</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;w:sdt docpart=&quot;B04D5463105B456FB78020156A48EE7E&quot; id=&quot;89512082&quot; storeitemid=&quot;X_29D85171-8ECF-41ED-AACD-BF2B7EB19406&quot; text=&quot;t&quot; title=&quot;Post Title&quot; xpath=&quot;/ns0:BlogPostInfo/ns0:PostTitle&quot;&gt;
 &lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;Publishwithline&quot;&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;





&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;Swapping Algorithms in C/C++&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;background-color: white; border-bottom-style: solid; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;background-color: white; color: #333333; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are many ways to handle a swap operation; moreover,
people have reason to believe that bitwise swapping is faster and more
efficient than other methods; however, I strongly &lt;b&gt;disagree&lt;/b&gt; with them. Only with the oldest microprocessor, people can
have their desire effectiveness using bitwise operation but in modern processor
architecture, bitwise operations can perform as faster as adding or subtracting
operation. &lt;b&gt;Consequently, for bitwise
operators like XOR(^) have more operations than simple addition or subtraction ;
as a result , it seems that addition is the best way to go.&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;Please &lt;b&gt;save the file in (.cpp)&lt;/b&gt; format for &lt;b&gt;Code::Blocks&lt;/b&gt;, Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #F2F2F2; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* |
  Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler
  |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 7pt;&quot;&gt;Example of Swapping in C/C++, Save in .cpp&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include
  &amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using third variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;temp &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; temp&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;XOR(Bitwise Swapping)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;//no
  need to change if a=b, and &lt;b&gt;this
  condition is must for XOR&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;^&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using addition and subtraction&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;+&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using multiplication , division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #d9d9d9; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  10 , b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; 12&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;backup_a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a , backup_b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , backup_b ,
  a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_based_on_address(a , b)&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;swapping using memory location by sending only value
  to a function :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, b=%d\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , backup_a , backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_xor&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using XOR :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d)
  to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot; , backup_a , backup_b ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using addition, subtraction :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_a, b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; backup_b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using multiplication, division :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  , &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Swapping Algorithm&quot;&gt;




    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;Swap variable using XOR&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using XOR&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+)&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;(+)
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable without the third&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable without the third&quot;&gt;
                &lt;strong&gt;Swap variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using bitwise operator&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third&quot;&gt;
                &lt;strong&gt;Swapping variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable&quot;&gt;
                &lt;strong title=&quot;Swapping&quot;&gt;Swapping&lt;/strong&gt; &lt;strong title=&quot;numbers&quot;&gt;numbers&lt;/strong&gt; &lt;strong title=&quot;without&quot;&gt;without&lt;/strong&gt; &lt;strong title=&quot;third&quot;&gt;third&lt;/strong&gt; &lt;strong title=&quot;variable&quot;&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third in C&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third in C&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping variable without the third in C&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; the &lt;strong&gt;third&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+) in C++&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;
                &lt;strong title=&quot;Swap variable using addition(+) in C++&quot;&gt;Swap variable using addition(+) in C++&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variables using addition(+) without the third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;number&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Author Alim Ul Karim&quot;&gt;




    Author:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;About Author :Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;




            &lt;a href=&quot;http://auk-port.blogspot.com/p/aurthor.html&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;
                About &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Google Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Google Alim Ul Karim&quot;&gt;




            &lt;a href=&quot;https://www.google.com/search?q=alim+ul+karim&quot; title=&quot;Google Alim Ul Karim&quot;&gt;
                Google &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;




            &lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
                &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;&#39;s Portfolio
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot; title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;Search Engine Friendly&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;Labels&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap using addition and subtraction&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition and subtraction&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition without the third variable&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers in C&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C++&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C++&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++ &lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping without using the third varible in C&quot;&gt;




       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;varible&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using bitwise operator&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;bitwise&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR operator&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using division operator&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;division&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using multiplication operator&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;multiplication&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using XOR (^) operator&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; (^) &lt;strong&gt;operator&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap XOR&quot;&gt;




       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;XOR&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;XOR(^)&quot;&gt;




       &lt;strong&gt;XOR&lt;/strong&gt;&lt;strong&gt;(^)&lt;/strong&gt;
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/35372322287382711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/35372322287382711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/35372322287382711'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping-algorithms-in-cc.html' title='Swapping Algorithms in C/C++'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-8393223918177551177</id><published>2011-10-20T11:18:00.000+08:00</published><updated>2011-10-21T13:49:40.345+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap"/><category scheme="http://www.blogger.com/atom/ns#" term="Swap Numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables"/><category scheme="http://www.blogger.com/atom/ns#" term="swap variables using memory"/><category scheme="http://www.blogger.com/atom/ns#" term="swap without third variable"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping in C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Swapping without using third variable"/><title type='text'>Swapping without third variable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;font-family: Calibri, sans-serif; font-size: 19px;&quot;&gt;




&lt;/h1&gt;
&lt;h1 style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;




&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;Swapping/Swap without using third variable in C/C++&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;background-color: white; border-bottom-style: solid; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;background-color: white; color: #333333; font-size: 1pt; font-weight: normal; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #17365d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 12px; line-height: 13px;&quot;&gt;It was never been so hard
to swap number variables without using third variable, however there are many
ways to do it but it seems that swapping &amp;nbsp;variables using addition and subtraction
operators are the best way to go.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;For instance, assume two
number variables ‘a’ and ‘b’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;a = 10; b = 12;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;Now, if a = a + b; then ‘a’
would be 22. Hence, ‘a’ is a combination of ‘a’ and ‘b’ , so if ‘b’ is
subtracted from ‘a’ , it will return the value of ‘a’.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;a = a + b; // summation
of both 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;b = a – b; // remain the ‘a’,
which we are taking in b. 22 – 12 = 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;a = a – b; // remain the ‘b’,
which we are taking in b. 22 – 10 = 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;Now we can see the code
for swapping variables using addition (+) and subtraction (-) operator without
using the third variable:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;(See the code very carefully how pointers in functions
can help to use the memory location to swap)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #F2F2F2; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* |
  Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler
  |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Example of Swapping in C/C++, Save in .cpp&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
  |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include
  &amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//using without using third
  variable, using addition and subtraction , save as .cpp file&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;//no need to change if a=b&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;== &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;b
  &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;+&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #d9d9d9; font-family: Consolas; font-size: 8pt;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt; save as .cpp
  file&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  10 , b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; 12&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;backup_a &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  a , backup_b &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;
  b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  swap_using_add&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;a , b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;// save file as a .cpp format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;Swap using addition, subtraction :&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #595959; font-family: Consolas; font-size: 8pt;&quot;&gt;From(a=%d,b=%d) to a=%d , b=%d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;\n\n&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;
  ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup_a ,
  backup_b , a ,b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #17365d; font-family: Consolas; font-size: 8pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;o:p&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Related links for Swapping numbers without third variable&quot;&gt;







    Search Engine Friendly Links:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;Swapping numbers without third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swapping numbers without third variable&quot;&gt;
                &lt;strong title=&quot;Swapping&quot;&gt;Swapping&lt;/strong&gt; &lt;strong title=&quot;numbers&quot;&gt;numbers&lt;/strong&gt; &lt;strong title=&quot;without&quot;&gt;without&lt;/strong&gt; &lt;strong title=&quot;third&quot;&gt;third&lt;/strong&gt; &lt;strong title=&quot;variable&quot;&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swapping numbers without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swap number variable without third variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;number&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variables using addition(+) without the third variable&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swap variable using addition(+) without the third variable&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swapping variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;&lt;strong&gt;(+)&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+)&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+)&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swap variable using addition(+)&quot;&gt;
                &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt;(+)
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swap variable without the third&quot;&gt;
                &lt;strong&gt;Swap variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swapping variable without the third&quot;&gt;
                &lt;strong&gt;Swapping variable without the third&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swapping variable without the third in C&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variable without the third in C&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swapping variable without the third in C&quot;&gt;
                &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; the &lt;strong&gt;third&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Swap variable using addition(+) in C++&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html&quot; title=&quot;Swap variable using addition(+) in C++&quot;&gt;
                &lt;strong title=&quot;Swap variable using addition(+) in C++&quot;&gt;Swap variable using addition(+) in C++&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Author Alim Ul Karim&quot;&gt;







    Author:
&lt;/h1&gt;
&lt;ul&gt;
&lt;li title=&quot;About Author :Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;http://auk-port.blogspot.com/p/aurthor.html&quot; title=&quot;About Author :Alim Ul Karim&quot;&gt;
                About Author : &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;







            &lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;
                &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;&#39;s Portfolio
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;li title=&quot;Google Alim Ul Karim&quot;&gt;
        &lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Google Alim Ul Karim&quot;&gt;







            &lt;a href=&quot;https://www.google.com/search?q=alim+ul+karim&quot; title=&quot;Google Alim Ul Karim&quot;&gt;
                Google &lt;strong title=&quot;Alim Ul Karim&quot;&gt;Alim Ul Karim&lt;/strong&gt;
            &lt;/a&gt;
        &lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;&lt;strong title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;
&lt;strong title=&quot;Swapping numbers without third variable Search Engine Friendly Labels&quot;&gt;Search Engine Friendly&lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt;:
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt;,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition and subtraction&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;strong&gt;subtraction&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping using addition without the third variable&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;addition&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;variable&lt;/strong&gt; ,
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping numbers in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;numbers&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping variables in C++&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++&lt;/strong&gt; , 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C++&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++ &lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swap variables in C&quot;&gt;







       &lt;strong&gt;Swap&lt;/strong&gt; &lt;strong&gt;variables&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;, 
    &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Swapping without using the third varible in C&quot;&gt;







       &lt;strong&gt;Swapping&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&lt;/strong&gt; &lt;strong&gt;the&lt;/strong&gt; &lt;strong&gt;third&lt;/strong&gt; &lt;strong&gt;varible&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;
    &lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/8393223918177551177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8393223918177551177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/8393223918177551177'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/10/swapping-without-third-variable.html' title='Swapping without third variable'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2014035380656781241</id><published>2011-08-09T18:40:00.003+08:00</published><updated>2011-09-07T12:54:55.957+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flash CS3"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="CLS"/><category scheme="http://www.blogger.com/atom/ns#" term="How to Clean up the Screen in C/C++"/><title type='text'>Clean up the Screen in C/C++ Using CLS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot; &gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;How to Clean up the Screen in C/C++&lt;/span&gt; &lt;/h1&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-style: solid; border-bottom-width: 1pt; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;How to Clean up the Screen in C/C++&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;h1 style=&quot;font-family: Calibri,Trebuchet MS, sans-serif; font-size: 14px; font-weight: normal;&quot;&gt;
To &lt;strong&gt;clean&lt;/strong&gt; up your &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt; &lt;strong&gt;screen&lt;/strong&gt; you can use &lt;strong&gt;system(&quot;cls&quot;)&lt;/strong&gt;. It is very &lt;strong&gt;understandable&lt;/strong&gt; that some &lt;strong&gt;compilers&lt;/strong&gt; &lt;strong&gt;does&lt;/strong&gt; not support &lt;strong&gt;cls&lt;/strong&gt;/&lt;strong&gt;CLS&lt;/strong&gt; and &lt;strong&gt;clrscr&lt;/strong&gt;()&lt;/h1&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* | Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot; style=&quot;color: blue; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; :&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot; style=&quot;color: blue; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot; style=&quot;color: blue; text-decoration: underline;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; |------------------------------------------|&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler |&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Example of cls or clean up screen &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; |------------------------------------------|&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;span style=&quot;color: red;&quot;&gt;(){&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #254061;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;(&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;Before system(cls)&lt;span style=&quot;color: red;&quot;&gt;\n&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;)&lt;span style=&quot;color: red;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #254061;&quot;&gt;system&lt;/span&gt;&lt;/b&gt;(&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;cls&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #254061;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;(&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;after system(cls)&lt;span style=&quot;color: red;&quot;&gt;\n&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;)&lt;span style=&quot;color: red;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
Author Alim Ul Karim&#39;s Related Links:&lt;/div&gt;
&lt;ul style=&quot;font-size: 11pt;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Google &lt;a href=&quot;http://bit.ly/k2pMEx&quot; title=&quot;Google Alim Ul Karim&quot;&gt;&lt;strong&gt;Alim&lt;/strong&gt; &lt;strong&gt;Ul&lt;/strong&gt; &lt;strong&gt;Karim&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Visit &lt;strong&gt;Alim&lt;/strong&gt; &lt;strong&gt;Ul&lt;/strong&gt; &lt;strong&gt;Karim&lt;/strong&gt;&#39;s &lt;strong&gt;&lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;Portfolio&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;Related&amp;nbsp;&lt;/strong&gt;&lt;strong style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;Links&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li title=&quot;Cls In C/C++&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana,;&quot; title=&quot;Cls In C/C++&quot;&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;CLS in C/C++&quot;&gt;&lt;strong&gt;&lt;em&gt;Cls&lt;/em&gt;&lt;/strong&gt; In &lt;em&gt;&lt;strong&gt;C&lt;/strong&gt;&lt;/em&gt;/&lt;em&gt;C++&lt;/em&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/h1&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;CLS in C/C++&quot;&gt;    &lt;/a&gt;&lt;/li&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;CLS in C/C++&quot;&gt;     &lt;/a&gt;
&lt;li title=&quot;Clean Screen in C&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana,;&quot; title=&quot;Clean Screen in C&quot;&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;Clean Screen in C&quot;&gt;&lt;strong&gt;&lt;em&gt;Clean&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;Screen&lt;/em&gt;&lt;/strong&gt; in &lt;strong&gt;&lt;em&gt;C&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/h1&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;Clean Screen in C&quot;&gt;    &lt;/a&gt;&lt;/li&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;Clean Screen in C&quot;&gt;          &lt;/a&gt;
&lt;li title=&quot;System Cls in C/C++&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana,;&quot; title=&quot;System Cls in C/C++&quot;&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;System Cls in C/C++&quot;&gt;&lt;em&gt;System&lt;/em&gt; &lt;em&gt;Cls&lt;/em&gt; in &lt;em&gt;C&lt;/em&gt;/&lt;em&gt;C++&lt;/em&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/h1&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;System Cls in C/C++&quot;&gt;    &lt;/a&gt;&lt;/li&gt;
&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html&quot; title=&quot;System Cls in C/C++&quot;&gt;      &lt;/a&gt;&lt;/ul&gt;
&lt;strong style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;SEO&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;LABELS&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: xx-small;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;Clean Screen In C/C++&quot;&gt;
&lt;em&gt;Clean&lt;/em&gt; &lt;em&gt;Screen&lt;/em&gt; In &lt;em&gt;C&lt;/em&gt;/&lt;em&gt;C++&lt;/em&gt;&amp;nbsp;,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;CLS in C/C++&quot;&gt;
&lt;em&gt;CLS&lt;/em&gt; in &lt;em&gt;C&lt;/em&gt;/&lt;em&gt;C++ , &amp;nbsp;&lt;/em&gt;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;system(&amp;quot;cls&amp;quot;) in C&quot;&gt;
&lt;em&gt;system&lt;/em&gt;(&quot;&lt;em&gt;cls&lt;/em&gt;&quot;) in &lt;em&gt;C , s&lt;/em&gt;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;system(&amp;quot;cls&amp;quot;) in C++&quot;&gt;
&lt;em&gt;ystem&lt;/em&gt;(&quot;&lt;em&gt;cls&lt;/em&gt;&quot;) in &lt;em&gt;C++, Cl&lt;/em&gt;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;cleanscreen in c&quot;&gt;
&lt;em&gt;eanScreen&lt;/em&gt; in &lt;em&gt;&lt;strong&gt;c,&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot; title=&quot;clean the screen in C/C++&quot;&gt;
&lt;em&gt;clean&lt;/em&gt; the &lt;em&gt;screen&lt;/em&gt; in &lt;em&gt;C&lt;/em&gt;/&lt;em&gt;C++&lt;/em&gt;&lt;br /&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2014035380656781241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2014035380656781241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2014035380656781241'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/08/clean-up-screen-in-cc-using-cls.html' title='Clean up the Screen in C/C++ Using CLS'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-4688689789523843565</id><published>2011-08-09T17:18:00.004+08:00</published><updated>2011-08-09T17:23:37.785+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Send Data Using Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Send Data Using Flash AS3"/><title type='text'>Send Data Using Flash</title><content type='html'>&lt;a href=&quot;http://auk-port.blogspot.com/2011/05/adobe-flash-cs3cs4cs5-actionscript-30.html?spref=bl&quot;&gt;Alim Ul Karim&#39;s Blog: Adobe Flash CS3,CS4,CS5 (ActionScript 3.0 AS3) - S...&lt;/a&gt;: &quot;Adobe Flash CS3,CS4,CS5 (ActionScript 3.0 AS3) - Send Data (SendData) to a URL or PHP or ASP Page as Post or Get Method Example  by using th...&quot;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;h1 style=&quot;font-size:14px&quot;&gt;&lt;br /&gt;
Alim Ul Karim&#39;s Blog: Send Data Using Flash AS3 &lt;br /&gt;
&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/4688689789523843565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/08/alim-ul-karims-blog-send-data-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4688689789523843565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4688689789523843565'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/08/alim-ul-karims-blog-send-data-using.html' title='Send Data Using Flash'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-479888822798760815</id><published>2011-08-08T13:15:00.012+08:00</published><updated>2012-01-12T22:00:29.905+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="char"/><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="double"/><category scheme="http://www.blogger.com/atom/ns#" term="Double to Char[] array in C"/><category scheme="http://www.blogger.com/atom/ns#" term="Double to Char[] array in c/c++"/><category scheme="http://www.blogger.com/atom/ns#" term="Double to Char[] in C++"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Convert double to char[] array in C/C++</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;display: none;&quot;&gt;

&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;double&lt;/strong&gt; to &lt;strong&gt;char&lt;/strong&gt;&lt;strong&gt;[]&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;
&lt;h1 class=&quot;Apple-style-span&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 19px; font-weight: bold;&quot;&gt;

How to Convert Double to Char[] Array in C/C++&lt;/h1&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-style: solid; border-bottom-width: 1pt; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 16pt; font-weight: bold; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;h1 style=&quot;font-size: 14pt;&quot;&gt;

How to Convert Double to Char[] Array in C/C++&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;font-family: Calibri,Consolas,ssans-serif,verdana; font-size: 14px;&quot;&gt;

It is very easy to convert double to char[] array in C or C++, we can do it by using sprintf method.&lt;br /&gt;
If you have no idea about sprintf , then please take a look at&amp;nbsp;&lt;a href=&quot;http://is.gd/QEIwGh&quot; target=&quot;_blank&quot; title=&quot;C++ sprintf in cplusplus.com&quot;&gt;sprintf in cplusplus.com&lt;/a&gt;&amp;nbsp;.&lt;/h2&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;In below code , we are trying to utilize the the &lt;b&gt;sprintf &lt;/b&gt;to get the &lt;b&gt;double &lt;/b&gt;to get back in the &lt;b&gt;char&lt;/b&gt;[] &lt;b&gt;array &lt;/b&gt;in &lt;b&gt;C&lt;/b&gt; or &lt;b&gt;C++&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #F2F2F2; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* | Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Alim Ul Karim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;mailto:auk.junk@live.com&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk.junk@live.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Portfolio&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://auk-port.webs.com/&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;auk-port.webs.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Blog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/span&gt;&lt;a href=&quot;http://bit.ly/auk-blog&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;bit.ly/auk-blog&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;   |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Code tested on CodeBlocks , GCC Compiler   |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp; | Example of &lt;b&gt;Double &lt;/b&gt;to &lt;b&gt;Char&lt;/b&gt;[] &lt;b&gt;array&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;   |------------------------------------------|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;main&lt;span style=&quot;color: red;&quot;&gt;(){&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;[&lt;/span&gt;10&lt;span style=&quot;color: red;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #bfbfbf;&quot;&gt;//becuase &lt;b&gt;double &lt;/b&gt;  is 8 bytes in GCC compiler but take 10 for safety&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &lt;b&gt;double &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;d &lt;/span&gt;&lt;span style=&quot;color: #3d85c6; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;234.2341&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &lt;b&gt;sprintf&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;c , &quot;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;%lf&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&quot; , d&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &lt;/span&gt;&lt;b style=&quot;color: #1f497d;&quot;&gt;printf&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&quot;output :: |%s|&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt; , &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h1 style=&quot;display: none;&quot;&gt;

&lt;strong&gt;How&lt;/strong&gt; to &lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;Double&lt;/strong&gt; &lt;strong&gt;to&lt;/strong&gt; &lt;strong&gt;Char&lt;/strong&gt;[] &lt;strong&gt;array&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;br /&gt;
It is not very &lt;strong&gt;hard&lt;/strong&gt; to &lt;strong&gt;convert&lt;/strong&gt; &lt;strong&gt;double&lt;/strong&gt; to &lt;strong&gt;char&lt;/strong&gt;[] &lt;strong&gt;array&lt;/strong&gt; in &lt;strong&gt;c&lt;/strong&gt; or &lt;strong&gt;C++ &lt;/strong&gt;, we can do it by using &lt;strong&gt;sprintf&lt;/strong&gt; method.&lt;br /&gt;
&lt;br /&gt;
How to &lt;strong&gt;convert&lt;/strong&gt; &lt;strong&gt;Double&lt;/strong&gt; to &lt;strong&gt;char&lt;/strong&gt;[] &lt;strong&gt;array&lt;/strong&gt; using &lt;strong&gt;sprintf&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;strong&gt;Related&lt;/strong&gt; &lt;strong&gt;Links&lt;/strong&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana,;&quot;&gt;

&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html&quot; title=&quot;Convert double to char[] in C&quot;&gt;&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;double&lt;/strong&gt; to &lt;strong&gt;char&lt;/strong&gt;[] in &lt;strong&gt;C&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/h1&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h1 style=&quot;display: inline; font-size: 14px;&quot;&gt;

&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html&quot; title=&quot;Convert double to char[] array in C&quot;&gt;&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;double&lt;/strong&gt; to array &lt;strong&gt;char&lt;/strong&gt;[] in &lt;strong&gt;C&lt;/strong&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h1 style=&quot;display: inline; font-size: 14px;&quot;&gt;

&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html&quot; title=&quot;Double to char[] array in C\C++&quot;&gt;  &lt;span title=&quot;double to char in C\C++&quot;&gt;&lt;strong title=&quot;Double&quot;&gt;Double&lt;/strong&gt; &lt;strong title=&quot;to&quot;&gt;to&lt;/strong&gt; &lt;strong title=&quot;char&quot;&gt;char&lt;/strong&gt; &lt;strong title=&quot;in&quot;&gt;in&lt;/strong&gt; &lt;strong title=&quot;C&quot;&gt;C&lt;/strong&gt;\&lt;strong title=&quot;C++&quot;&gt;C++&lt;/strong&gt; &lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;/li&gt;
&lt;li&gt; &lt;h1 style=&quot;display: inline; font-size: 14px;&quot;&gt;

&lt;a href=&quot;http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html&quot; title=&quot;Convert double to char[] array in C++&quot;&gt;&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;double&lt;/strong&gt; to &lt;strong&gt;array&lt;/strong&gt; &lt;strong&gt;char&lt;/strong&gt;[] in &lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;Search &lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;Labels&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Double to Char[] array&quot;&gt;

Double to Char[] array, &lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Convert Double to Char[] array&quot;&gt;

Convert Double to Char[] array,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Convert Double to Char[] array C&quot;&gt;

&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;Double&lt;/strong&gt; &lt;strong&gt;to&lt;/strong&gt; &lt;strong&gt;Char&lt;/strong&gt;[] &lt;strong&gt;array&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Convert Double to Char[] array in C++&quot;&gt;

&lt;strong&gt;Convert&lt;/strong&gt; &lt;strong&gt;Double&lt;/strong&gt; to &lt;strong&gt;Char&lt;/strong&gt;[] &lt;strong&gt;array&lt;/strong&gt; &lt;strong&gt;in&lt;/strong&gt; &lt;strong&gt;C++&lt;/strong&gt; ,&lt;br /&gt;
&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Convert&quot;&gt;

&lt;strong&gt;Convert&lt;/strong&gt;,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;double&quot;&gt;

&lt;strong&gt;double&lt;/strong&gt;,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;to&quot;&gt;

&lt;strong&gt;to&lt;/strong&gt;,&amp;nbsp;&lt;/h1&gt;
&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;char&quot;&gt;

&lt;strong&gt;char&lt;/strong&gt;[]&lt;br /&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/479888822798760815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/479888822798760815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/479888822798760815'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/08/convert-double-to-char-array-in-cc.html' title='Convert double to char[] array in C/C++'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-4976572554371710084</id><published>2011-07-30T17:16:00.000+08:00</published><updated>2011-07-30T17:16:31.442+08:00</updated><title type='text'>Alim Ul Karim&#39;s Blog: Division Operation Using Minus Operator In C/C++, ...</title><content type='html'>&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html?spref=bl&quot;&gt;Alim Ul Karim&#39;s Blog: Division Operation Using Minus Operator In C/C++, ...&lt;/a&gt;: &quot;Division Operation Using Minus Operator  In  C/C++, Algorithm   Division Operation Using Minus Operator  In  C/C++, Algorithm  It is not ve...&quot;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/4976572554371710084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/07/alim-ul-karims-blog-division-operation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4976572554371710084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4976572554371710084'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/07/alim-ul-karims-blog-division-operation.html' title='Alim Ul Karim&#39;s Blog: Division Operation Using Minus Operator In C/C++, ...'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2347851623039336559</id><published>2011-07-30T13:29:00.002+08:00</published><updated>2011-07-30T13:47:05.608+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Multiplication Algorithm Using Add Operator in C/C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Remainder / Remainder in C / Remainder In C++ / modulus user-defined function"/><title type='text'>Remainder Base Operation Using Minus In C/C++, Algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;w:sdt contentlocked=&quot;t&quot; id=&quot;89512093&quot; sdtgroup=&quot;t&quot;&gt;&lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Cambria, serif; font-size: 16pt; font-weight: bold; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;h1 style=&quot;font-family: Calibri, sans-serif; font-size: 14pt;&quot;&gt;Remainder Base Operation Using Minus In C/C++, Algorithm&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;w:sdtpr&gt;&lt;/w:sdtpr&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;h1 style=&quot;display: none;&quot;&gt;Remainder Base Operation Using Minus In C/C++, Algorithm&lt;/h1&gt;&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-style: solid; border-bottom-width: 1pt; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Cambria, serif; font-size: 16pt; font-weight: bold; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 14pt;&quot;&gt;&lt;w:sdt id=&quot;1076713614&quot; storeitemid=&quot;X_29D85171-8ECF-41ED-AACD-BF2B7EB19406&quot; text=&quot;t&quot; title=&quot;Post Title&quot; xpath=&quot;/ns0:BlogPostInfo/ns0:PostTitle&quot;&gt;Remainder Base Operation Using Minus In C/C++, Algorithm&lt;/w:sdt&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;It is not very hard to write such an algorithm “&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Remainder Base Operation Using minus &amp;amp; plus Operator&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;” in C. To accomplish our motives we can create a user-defined function, where we will use only minus to get our division result. Algorithm is the main fact for those kinds of problems. However, the algorithm is very easy to understand.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Division-by-Division Operator:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 10pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3 / 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;We know that a division is a combination of (numerator / denominator&amp;nbsp;&lt;b&gt;or&lt;/b&gt;&amp;nbsp;divisor).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Think as a simple division as above, what we do is subtract the numerator (9) by the divisor (3) each time if the numerator is not less than the divisor (3).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;GramE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;numerator&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;= numerator – divisor; // (if numerator is not equal or less than the divisor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Once we get&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;the quotient, we can get the remainder very easily.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;GramE&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;remainder&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;numerator – (&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;quotient&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;* divisor) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;From that above algorithm, we can hence our code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* Code Written By&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Alim&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Ul&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Karim&lt;/span&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* email : auk.junk@live.com */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;&lt;span class=&quot;SpellE&quot;&gt;stdio.h&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;multiplication&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;a,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;b&lt;span style=&quot;color: red;&quot;&gt;){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&amp;nbsp;, sum&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;1;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;b ;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;++&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// a multiplication of 5 x 6 is actually adding 5,&amp;nbsp;&amp;nbsp;6 times&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;+=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;sum;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;remainder_module&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;a,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;int&lt;/span&gt;&amp;nbsp;b&lt;span style=&quot;color: red;&quot;&gt;)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//approximate result of the division operation between a ,b using minus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;quotient = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;remainder = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x = a , y = b ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//this condition works for positive numbers only&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;x&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;y&lt;span style=&quot;color: red;&quot;&gt;) {&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;-=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;y;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;quotient&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;++&lt;/span&gt;&lt;/b&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//remainder = numerator – (quotient * divisor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;remainder&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;a&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;(&amp;nbsp;&lt;/span&gt;multiplication&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&amp;nbsp;b , quotient&lt;span style=&quot;color: red;&quot;&gt;) );&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;remainder;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;main&lt;span style=&quot;color: red;&quot;&gt;(){&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;9;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;y&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;r&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;remainder_module&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;x , y&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;)&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;%d&quot;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;, r&lt;span style=&quot;color: red;&quot;&gt;)&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;However, since we have a&amp;nbsp;&lt;b&gt;problem&lt;/b&gt;&amp;nbsp;with the&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;negative&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;number so we can include&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;2&lt;/span&gt;&amp;nbsp;more conditions in our code to make it better.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;Code for all numbers:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* Code Written By&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Alim&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Ul&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Karim&lt;/span&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 8pt;&quot;&gt;/* email : auk.junk@live.com */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 8pt;&quot;&gt;#include &amp;lt;&lt;span class=&quot;SpellE&quot;&gt;stdio.h&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;multipication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;i&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;, sum&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;==&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0 || b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;==&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;) {&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;return 0;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//works for all positive numbers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;-1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;i&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;1;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;b ;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;++&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// a&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;multipication&lt;/span&gt;&amp;nbsp;of 5 x 6 is actually &lt;b&gt;adding &lt;/b&gt;5,&amp;nbsp;&amp;nbsp;6 times&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum += a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//if we assume b = -6 , we are incrementing +1 every time until we reaches the -1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;i&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;b;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;-1 ;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;i&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;++&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;-=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&lt;span class=&quot;SpellE&quot;&gt;printf&lt;/span&gt;(&quot;a=%d , b = %d ,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;mul&lt;/span&gt;&amp;nbsp;= %d\n&quot; , a ,b , sum );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;sum;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;remainder_modulous&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//approximate result of the division operation between a ,b using minus&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;quotient&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;result_in_minus&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;remainder&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;x = a , y&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;b ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//if one is positive and the other is&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;negetive&lt;/span&gt;&amp;nbsp;the result would be in negative&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;( (&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0 &amp;amp;&amp;amp; b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;-1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;||&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;-1&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;) ){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;result_in_minus&lt;/span&gt;&amp;nbsp;= 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//check if minus exist, make all positive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;x&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;multipication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;a , -1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;y&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;multipication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;b , -1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//this condition works for positive numbers only&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;x&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;y&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;) {&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;-=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;y;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;quotient++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//if one is positive and the other is&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;negetive&lt;/span&gt;&amp;nbsp;the result would be in negative&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;result_in_minus&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;==&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;) {&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;quotient =&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;multipication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;quotient , -1&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&lt;span class=&quot;SpellE&quot;&gt;printf&lt;/span&gt;(&quot;quotient= %d\n&quot; , quotient);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//remainder&amp;nbsp;&lt;b&gt;=&lt;/b&gt;&amp;nbsp;numerator&amp;nbsp;&lt;b&gt;–&lt;/b&gt;&amp;nbsp;(quotient&amp;nbsp;&lt;b&gt;*&lt;/b&gt;&amp;nbsp;divisor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;remainder&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;multipication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;b , quotient&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;) )&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;remainder;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;main&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(){&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;x&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;-7;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;y&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;r&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 8pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;remainder_modulous&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;x , y&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 8pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;&quot;remainder of x(%d) / y(%d) is r=%d\n&quot;&amp;nbsp;&amp;nbsp;, x , y , r&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 8pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 8pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;See also:&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html&quot; title=&quot;Division without Using Division Operator In C/C++, Algorithm&quot;&gt;&lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;Operation&lt;/strong&gt; Using &lt;strong&gt;Minus&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; In &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Remainder Base Operation Using Minus In C/C++, Algorithm&quot;&gt;&lt;strong&gt;Remainder&lt;/strong&gt;  / &lt;strong&gt;Modulus&lt;/strong&gt; Using Add(+) and &lt;strong&gt;Minus&lt;/strong&gt;(-) or &lt;strong&gt;Subtract&lt;/strong&gt;(-) Operator in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;span style=&quot;color: green; font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;strong&gt;Author Related Links:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Google&amp;nbsp;&lt;a href=&quot;http://bit.ly/k2pMEx&quot; title=&quot;Google Alim Ul Karim&quot;&gt;&lt;strong&gt;Alim&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Ul&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Karim&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Visit&amp;nbsp;&lt;strong&gt;Alim&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Ul&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Karim&lt;/strong&gt;&#39;s&amp;nbsp;&lt;strong&gt;&lt;a href=&quot;http://auk-port.zxq.net/&quot; title=&quot;Alim Ul Karim&#39;s Portfolio&quot;&gt;Portfolio&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;SEO Labels:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1 class=&quot;example1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: x-small;&quot;&gt;Remainder /&amp;nbsp;Remainder in C&amp;nbsp;/&amp;nbsp;Remainder In C++&amp;nbsp;/&amp;nbsp;modulus(%) user-defined function&amp;nbsp;/&amp;nbsp;&lt;strong&gt;modulus using custom codes / Remainder get using minus and plus or add operator only / remainder get without using %&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h1 style=&quot;display: none;&quot;&gt;&lt;strong&gt;Remainder&lt;/strong&gt; &lt;strong&gt;Base&lt;/strong&gt; &lt;strong&gt;Operation&lt;/strong&gt; &lt;strong&gt;Using&lt;/strong&gt; &lt;strong&gt;Minus&lt;/strong&gt; In &lt;strong&gt;C/C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;h1 style=&quot;display: none;&quot;&gt;&lt;strong&gt;Remainder&lt;/strong&gt; / &lt;strong&gt;Remainder&lt;/strong&gt; in&lt;strong&gt; C&lt;/strong&gt; / &lt;strong&gt;Remainder&lt;/strong&gt; In &lt;strong&gt;C++&lt;/strong&gt; / &lt;strong&gt;modulus&lt;/strong&gt;(%) &lt;strong&gt;user-defined&lt;/strong&gt; &lt;strong&gt;function&lt;/strong&gt; / &lt;strong&gt;modulus&lt;/strong&gt; using custom codes / Remainder get using &lt;strong&gt;minus&lt;/strong&gt; and &lt;strong&gt;plus&lt;/strong&gt; or &lt;strong&gt;add&lt;/strong&gt; &lt;strong&gt;operator&lt;/strong&gt; only / &lt;strong&gt;remainder&lt;/strong&gt; get without using &lt;strong&gt;%&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/h1&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2347851623039336559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2347851623039336559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2347851623039336559'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html' title='Remainder Base Operation Using Minus In C/C++, Algorithm'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-297689380410295253</id><published>2011-07-30T05:37:00.003+08:00</published><updated>2011-07-30T13:56:24.441+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Division Operation Using Minus Operator In C/C++"/><title type='text'>Division Operation Using Minus Operator In C/C++, Algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;w:sdt contentlocked=&quot;t&quot; id=&quot;89512093&quot; sdtgroup=&quot;t&quot; sdtlocked=&quot;t&quot;&gt;&lt;/w:sdt&gt;&lt;br /&gt;
&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 16pt; font-weight: bold; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Division Operation Using Minus Operator&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;In&lt;/span&gt;&amp;nbsp;C/C++, Algorithm&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;w:sdtpr&gt;&lt;/w:sdtpr&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom-color: rgb(79, 129, 189); border-bottom-style: solid; border-bottom-width: 1pt; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 2pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;div class=&quot;underline&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 2pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;PadderBetweenControlandBody&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 1pt; margin-bottom: 6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;Publishwithline&quot; style=&quot;color: #17365d; font-family: Calibri, sans-serif; font-size: 16pt; font-weight: bold; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;w:sdt docpart=&quot;8A233BA0D1E8451A9B608C2CAD9E7F11&quot; id=&quot;1076713614&quot; storeitemid=&quot;X_29D85171-8ECF-41ED-AACD-BF2B7EB19406&quot; text=&quot;t&quot; title=&quot;Post Title&quot; xpath=&quot;/ns0:BlogPostInfo/ns0:PostTitle&quot;&gt;Division Operation Using Minus Operator&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;In&lt;/span&gt;&amp;nbsp;C/C++, Algorithm&lt;/w:sdt&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;It is not very hard to write such a function “&lt;span class=&quot;GramE&quot;&gt;Division&amp;nbsp;&amp;nbsp;Between&lt;/span&gt;&amp;nbsp;Two Numbers Using Without Using Division Operator” in C. To accomplish our motives we can create a user-defined function, where we will use only minus to get our division result. Algorithm is the main fact for those kinds of problems. However, the algorithm is very easy to understand.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Division-by-Division Operator:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 10pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3 / 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;We know that a division is a combination of (numerator / denominator&amp;nbsp;&lt;b&gt;or&lt;/b&gt;&amp;nbsp;divisor).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Think as a simple division as above, what we do is subtract the numerator (9) by the divisor (3) each time if the numerator is not less than the divisor (3).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;GramE&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;numerator&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&amp;nbsp;= numerator – divisor; // (if numerator is not equal or less than the divisor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;From that above algorithm, we can hence our code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* Code Written By&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Alim&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Ul&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Karim&lt;/span&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* email : auk.junk@live.com */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;&lt;span class=&quot;SpellE&quot;&gt;stdio.h&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;division&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x,&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;y&lt;span style=&quot;color: red;&quot;&gt;) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;quotient = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;x &amp;gt;= y&lt;span style=&quot;color: red;&quot;&gt;) {&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;=&amp;nbsp;&amp;nbsp;y;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;// (if numerator is not equal or less than the divisor)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;quotient&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;++&lt;/span&gt;&lt;/b&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;quotient;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;void&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;main() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x = 9;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;y = 3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f7f7f;&quot;&gt;//works fine for all positive numbers, but&amp;nbsp;&lt;b&gt;not for negative numbers&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;r =&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;division&lt;/span&gt;&lt;/b&gt;(x ,y);&amp;nbsp;&lt;span style=&quot;color: #7f7f7f;&quot;&gt;// result 1&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;printf&lt;/span&gt;&lt;/span&gt;(&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&amp;nbsp;&lt;/span&gt;, r);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;However, since we have a&amp;nbsp;&lt;b&gt;problem&lt;/b&gt;&amp;nbsp;with the&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;negative&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;number so we can include&amp;nbsp;&lt;span class=&quot;GramE&quot;&gt;2&lt;/span&gt;&amp;nbsp;more conditions in our code to make it better.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;Code for all numbers:&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* Code Written By&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Alim&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Ul&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;Karim&lt;/span&gt;&amp;nbsp;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* email : auk.junk@live.com */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;&lt;span class=&quot;SpellE&quot;&gt;stdio.h&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//approximate result of the division operation between a ,b using minus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;quotient = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;result_in_minus&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;= 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//if one is positive and the other is negative the result would be in negative&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #4f81bd; font-family: Consolas; font-size: 9pt;&quot;&gt;||&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;-1&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;SpellE&quot;&gt;result_in_minus&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//check if minus exist, make all positive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//this condition works for positive numbers only&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;-=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;quotient&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//if one is positive and the other is negative the result would be in negative&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;result_in_minus&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;==&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;quotient = quotient&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;1 ;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;quotient;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;x = 9;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;y = -3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;// works for all numbers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;r = division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;x , y&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;SpellE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&quot;%d&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;, r&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif, consolas; font-size: 14px; font-weight: bold;&quot;&gt;&lt;strong&gt;See&lt;/strong&gt; also related links from &lt;strong&gt;Alim&lt;/strong&gt; &lt;strong&gt;Ul&lt;/strong&gt; &lt;strong&gt;Karim&lt;/strong&gt;&#39;s Blog:&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html&quot; title=&quot;Division Operation Using Minus Operator In C/C++, Algorithm&quot;&gt;&lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;Operation&lt;/strong&gt; Using &lt;strong&gt;Minus&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; In &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Multiplication Algorithm Using Add Operator in C/C++&quot;&gt;&lt;strong&gt;Multiplication&lt;/strong&gt; &lt;strong&gt;Algorithm&lt;/strong&gt; &lt;strong&gt;Using&lt;/strong&gt; &lt;strong&gt;Add&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Remainder  / Modulus Using Add Operator in C/C++&quot;&gt;&lt;strong&gt;Remainder&lt;/strong&gt;  / &lt;strong&gt;Modulus&lt;/strong&gt; Using Add(+) and &lt;strong&gt;Minus&lt;/strong&gt;(-) or &lt;strong&gt;Subtract&lt;/strong&gt;(-) Operator in &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;SEO Labels:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Remainder  / Modulus Using Add Operator in C/C++&quot;&gt; &lt;/a&gt;&lt;/strong&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;h1 style=&quot;font-family: consolas; font-size: 14px;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;Operation&lt;/strong&gt; Using &lt;strong&gt;Minus&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; In &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/297689380410295253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/297689380410295253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/297689380410295253'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html' title='Division Operation Using Minus Operator In C/C++, Algorithm'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-1938527516992760173</id><published>2011-07-30T05:22:00.002+08:00</published><updated>2011-07-30T14:00:55.571+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Division without Using Division Operator In C/C++"/><title type='text'>Division without Using Division Operator In C/C++, Algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h1 style=&quot;color: black; display: inline; font-family: Calibri, consolas; font-size: 24px;&quot;&gt;    &lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;Using&lt;/strong&gt; &lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; &lt;strong&gt;In&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;br /&gt;
&lt;h1 style=&quot;color: blue; display: none; font-family: Calibri, consolas;&quot;&gt;    &lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;Using&lt;/strong&gt; &lt;strong&gt;Division&lt;/strong&gt; &lt;strong&gt;Operator&lt;/strong&gt; &lt;strong&gt;In&lt;/strong&gt; &lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;, &lt;strong&gt;Algorithm&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;It is not very hard to write such a function “&lt;strong&gt;Division&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;strong&gt;Between&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Two&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Numbers&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Using&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Without&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Using&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Division&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operator”&lt;/strong&gt;&amp;nbsp;in&amp;nbsp;&lt;strong&gt;C&lt;/strong&gt;. To accomplish our motives we can create a&amp;nbsp;&lt;strong&gt;user-defined&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;function&lt;/strong&gt;, where we will use only minus to get our&amp;nbsp;&lt;strong&gt;division&lt;/strong&gt;&amp;nbsp;result.&amp;nbsp;&lt;strong&gt;Algorithm&lt;/strong&gt;&amp;nbsp;is the main fact for those kinds of problems. However, the&amp;nbsp;&lt;strong&gt;algorithm&lt;/strong&gt;&amp;nbsp;is very easy to&amp;nbsp;&lt;strong&gt;understand&lt;/strong&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&lt;strong&gt;Division&lt;/strong&gt;-by-&lt;strong&gt;Division&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operator&lt;/strong&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;9 / 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin-bottom: 10pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt; line-height: 13px;&quot;&gt;3 / 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;We know that a&amp;nbsp;&lt;strong&gt;division&lt;/strong&gt;&amp;nbsp;is a combination of (numerator / denominator&amp;nbsp;&lt;b&gt;or&lt;/b&gt;&amp;nbsp;divisor).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Think as a simple&amp;nbsp;&lt;strong&gt;division&lt;/strong&gt;&amp;nbsp;as above, what we do is subtract the&amp;nbsp;&lt;strong&gt;numerator&lt;/strong&gt;&amp;nbsp;(9) by the divisor (3) each time if the&amp;nbsp;&lt;strong&gt;numerator&lt;/strong&gt;&amp;nbsp;is not less than the divisor (3).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;&lt;strong&gt;numerator&lt;/strong&gt;&amp;nbsp;= numerator – divisor; // (if numerator is not equal or less than the divisor)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;From that above algorithm, we can hence our code:&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* Code Written By Alim Ul Karim */&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* email : auk.junk@live.com */&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;division&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x,&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;y&lt;span style=&quot;color: red;&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;quotient = 0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;x &amp;gt;= y&lt;span style=&quot;color: red;&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;= &amp;nbsp;y;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;// (if numerator is not equal or less than the divisor)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotient&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;++&lt;/span&gt;&lt;/b&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;quotient;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;void&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;main() {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;x = 9;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;y = 3;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7f7f7f;&quot;&gt;//works fine for all positive numbers, but&amp;nbsp;&lt;b&gt;not for negative numbers&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;r =&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;division&lt;/span&gt;&lt;/b&gt;(x ,y);&amp;nbsp;&lt;span style=&quot;color: #7f7f7f;&quot;&gt;// result 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #1f497d;&quot;&gt;printf&lt;/span&gt;(&lt;b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;&amp;nbsp;&lt;/span&gt;, r);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;However, since we have a&amp;nbsp;&lt;b&gt;problem&lt;/b&gt;&amp;nbsp;with the&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;negative&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;number so we can include 2 more conditions in our code to make it better.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;Code for all numbers:&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* Code Written By Alim Ul Karim */&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #bfbfbf; font-family: Consolas; font-size: 9pt;&quot;&gt;/* email : auk.junk@live.com */&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #00b050; font-family: Consolas; font-size: 9pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a,&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//approximate result of the division operation between a ,b using minus&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;quotient = 0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;result_in_minus = 0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//if one is positive and the other is negative the result would be in negative&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #4f81bd; font-family: Consolas; font-size: 9pt;&quot;&gt;||&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;-1&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result_in_minus&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check if minus exist, make all positive&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;-1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;//this condition works for positive numbers only&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;-=&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;b;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotient&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if one is positive and the other is negative the result would be in negative&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;result_in_minus&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;==&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;quotient = quotient&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;1 ;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;quotient;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;x = 9;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;y = -3;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a6a6a6; font-family: Consolas; font-size: 9pt;&quot;&gt;// works for all numbers&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;r = division&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;x , y&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9pt;&quot;&gt;printf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00b0f0; font-family: Consolas; font-size: 9pt;&quot;&gt;&quot;%d&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;, r&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; margin-bottom: 10pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif, consolas; font-size: 14px; font-weight: bold;&quot;&gt;&lt;strong&gt;See&lt;/strong&gt;&amp;nbsp;also related links from&amp;nbsp;&lt;strong&gt;Alim&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Ul&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Karim&lt;/strong&gt;&#39;s Blog:&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/division-operation-using-minus-operator.html&quot; title=&quot;Division Operation Using Minus Operator In C/C++, Algorithm&quot;&gt;&lt;strong&gt;Division&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operation&lt;/strong&gt;&amp;nbsp;Using&amp;nbsp;&lt;strong&gt;Minus&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operator&lt;/strong&gt;&amp;nbsp;In&amp;nbsp;&lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;Algorithm&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Multiplication Algorithm Using Add Operator in C/C++&quot;&gt;&lt;strong&gt;Multiplication&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Algorithm&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Using&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Add&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operator&lt;/strong&gt;&amp;nbsp;in&amp;nbsp;&lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Remainder  / Modulus Using Add Operator in C/C++&quot;&gt;&lt;strong&gt;Remainder&lt;/strong&gt;&amp;nbsp;/&amp;nbsp;&lt;strong&gt;Modulus&lt;/strong&gt;&amp;nbsp;Using Add(+) and&amp;nbsp;&lt;strong&gt;Minus&lt;/strong&gt;(-) or&amp;nbsp;&lt;strong&gt;Subtract&lt;/strong&gt;(-) Operator in&amp;nbsp;&lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;SEO Labels:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/07/remainder-base-operation-using-minus-in.html&quot; title=&quot;Remainder  / Modulus Using Add Operator in C/C++&quot;&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;h1 style=&quot;font-family: consolas; font-size: 14px;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;Division&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operation&lt;/strong&gt;&amp;nbsp;Using&amp;nbsp;&lt;strong&gt;Minus&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Operator&lt;/strong&gt;&amp;nbsp;In&amp;nbsp;&lt;strong&gt;C&lt;/strong&gt;/&lt;strong&gt;C++&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;Algorithm&lt;/strong&gt;&lt;/h1&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/1938527516992760173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/07/division-without-using-division.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1938527516992760173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1938527516992760173'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/07/division-without-using-division.html' title='Division without Using Division Operator In C/C++, Algorithm'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>2</thr:total><georss:featurename>Bangladesh</georss:featurename><georss:point>23.684994 90.356330999999955</georss:point><georss:box>20.675348 88.032488499999957 26.69464 92.680173499999952</georss:box></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-1144749068872903601</id><published>2011-07-01T14:37:00.004+08:00</published><updated>2011-07-05T01:46:29.528+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="[NSU] English 102.7 Summer 2011 Board"/><category scheme="http://www.blogger.com/atom/ns#" term="North South University"/><title type='text'>[NSU] English 102.7 Summer 2011 Board</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin-bottom: 8px; margin-left: 8px; margin-right: 8px; margin-top: 8px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;strong&gt;[NSU] English 102.7 Summer 2011 Board&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
All details will be publish here.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Class Journal as a Home Journal Details&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
Date - 06-July-2011&lt;br /&gt;
Narrate a situation what you did in the last rainy day. This has to be a paragraph with a minimum word limit of 150 words. Give a proper title.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Quiz - 3&lt;/strong&gt;&lt;br /&gt;
Date - 06-July-2011&lt;br /&gt;
Outlines -&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;RUN-ON&lt;/li&gt;
&lt;li&gt;Fragment and&amp;nbsp;&lt;/li&gt;
&lt;li&gt;parallelism&lt;/li&gt;
&lt;/ul&gt;&lt;strong&gt;Correct me , If I am wrong.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Stay in touch and follow my blog.&lt;br /&gt;
&lt;strong&gt;[all upcomming events about Eng 102.7 will be published here]&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/1144749068872903601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/07/nsu-english-1027-summer-2011-board.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1144749068872903601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/1144749068872903601'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/07/nsu-english-1027-summer-2011-board.html' title='[NSU] English 102.7 Summer 2011 Board'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-286067499937742318</id><published>2011-06-21T22:18:00.005+08:00</published><updated>2011-08-09T18:28:57.824+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS/HTML Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>CSS/HTML Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;CSS/HTML Interview Questions&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;1. What CSS means? In addition, how it works?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;CSS:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;How it works:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;2. Which of them should work and which of them do not work to center an object horizontally (also implement the theoretical concept), explain? &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;(Put cross or right, left side and explain it right side) &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;a) Take a wrapper and style it to {margin: 0 auto; }. Explain:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;b) #DIV {top: center; left:center; }. Explain:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;c) #DIV {top: 50%; left:50%; right: -200px; bottom: -250px; height:500px ;weight:400}. Explain:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;d) #DIV {top: 50%; left:50% }. Explain:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;e) Take a wrapper and style it to {text-align:center;}. Explain:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;3. How to align an object to vertically center?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;4. How overlap a Flash Object?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;5. How to create CSS Menu (one item would be enough)? Give an Example with HTML + CSS.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;6. What do you understand by the term of selectors? Give some example.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;7. How many types of styles sheets are there?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;8. What do you know about Reset CSS?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;9. Suppose you have an ID named “id”, class named “class”, h1 and h2 tags; now write a simple css rule for all of them at the same time.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;10. What is the default CSS position for every object and the inherit does work?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;11. Why specification is need in CSS Terms?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;12. How to use a transparent image?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;13. What float does? And What does ‘Clear’ have to do with it, explain.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;14. Which cannot be negative? Which one does the outer spacing?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;15. What CSS fixed position means?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;16. What z-index does?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;17. Write some CSS pseudo codes? And give some example of it.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;18. Is CSS case sensitive? &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;a) Yes &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;b) No&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;19. How to use a Fixed and Repeated background using CSS?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;20. What inline,block,none attribute does in the display parameter ?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Inline:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Block:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;None:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;21. What do you understand by the term of XHTML and HTML?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;XHTML:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;HTML:&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/286067499937742318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/06/csshtml-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/286067499937742318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/286067499937742318'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/06/csshtml-interview-questions.html' title='CSS/HTML Interview Questions'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-319820536709144905</id><published>2011-06-21T22:03:00.005+08:00</published><updated>2011-06-21T22:09:10.904+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS Center or Centering an Object"/><title type='text'>CSS Center or Centering an Object</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div id=&quot;content-container&quot;&gt;&lt;div id=&quot;content&quot; style=&quot;margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; width: 1000px;&quot;&gt;&lt;div id=&quot;main-articles&quot; style=&quot;clear: left; margin-bottom: 0px; margin-left: 135px; margin-right: 0px; margin-top: 0px; padding-bottom: 30px; padding-left: 0px; padding-right: 0px; padding-top: 15px; width: 35em;&quot;&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #003d5d; font-size: 22px; font-weight: bold; line-height: 24px;&quot;&gt;CSS Center or Centering an Object&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
How do you center a containing block on a page using CSS? There are two main methods and the choice should be made based on whether your page layout is liquid (will move in and out depending on the size of the browser window) or fixed width.&lt;/div&gt;&lt;h3 style=&quot;clear: left; color: #003d5d; font-size: 22px; line-height: 1.1; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot;&gt;Centering liquid layouts&lt;/h3&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Liquid layouts are easy to center using margins on each side of the containing box. The margins can be set with em, pixel or percentage units.&lt;/div&gt;&lt;pre class=&quot;codesample&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #444444; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: white; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 115%/normal courier, monaco, monospace; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;div#container
{
 margin-left: 10%;
 margin-right: 10%;
}&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;clear: left; color: #003d5d; font-size: 22px; line-height: 1.1; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot;&gt;Centering fixed-width layouts&lt;/h3&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Theoretically, you should be able to apply auto margins to the left and right of the containing block and it should center on the page.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;The W3C&amp;nbsp;&lt;a href=&quot;http://www.w3.org/TR/CSS21/visudet.html#q6&quot; style=&quot;color: #035389;&quot;&gt;Visual formatting model&lt;/a&gt;&amp;nbsp;states: “If both ‘margin-left’ and ‘margin-right’ are ‘auto’, their used values are equal. This horizontally centers the element with respect to the edges of the containing block.”&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;So, a containing block should be able to be centered using the following rules:&lt;/div&gt;&lt;pre class=&quot;codesample&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #444444; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: white; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 115%/normal courier, monaco, monospace; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;div#container
{
 margin-left: auto;
 margin-right: auto;
 width: 50em;
}&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;However, some browsers do not center the containing blocks using this method as they ignore the auto margins. These browsers include:&lt;/div&gt;&lt;ul style=&quot;margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://www.maxdesign.com.au/wp-content/themes/maxdesign/images/arrow.gif); background-origin: initial; background-position: 0px 0.3em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 25px; padding-right: 0px; padding-top: 2px;&quot;&gt;NN4 (Mac and Win)&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://www.maxdesign.com.au/wp-content/themes/maxdesign/images/arrow.gif); background-origin: initial; background-position: 0px 0.3em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 25px; padding-right: 0px; padding-top: 2px;&quot;&gt;Win/IE4&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://www.maxdesign.com.au/wp-content/themes/maxdesign/images/arrow.gif); background-origin: initial; background-position: 0px 0.3em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 25px; padding-right: 0px; padding-top: 2px;&quot;&gt;Win/IE5&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://www.maxdesign.com.au/wp-content/themes/maxdesign/images/arrow.gif); background-origin: initial; background-position: 0px 0.3em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 25px; padding-right: 0px; padding-top: 2px;&quot;&gt;Win/IE5.5&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://www.maxdesign.com.au/wp-content/themes/maxdesign/images/arrow.gif); background-origin: initial; background-position: 0px 0.3em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 25px; padding-right: 0px; padding-top: 2px;&quot;&gt;Win/IE6 (when in quirks-mode)&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;By adding two simple rules, this problem can be overcome in all of the browsers mentioned above, excluding NN4.&lt;/div&gt;&lt;h4 style=&quot;font-size: 19px; line-height: 1.1; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 1em;&quot;&gt;1. Center the body&lt;/h4&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;While these browsers ignore auto margins, they will follow “text-align: center”. If this is applied to the body, the containing block will center correctly. So, a new rule is added:&lt;/div&gt;&lt;pre class=&quot;codesample&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #444444; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: white; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 115%/normal courier, monaco, monospace; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;body
{
 text-align: center;
}

div#container
{
 margin-left: auto;
 margin-right: auto;
 width: 50em;
}&lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;font-size: 19px; line-height: 1.1; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 1em;&quot;&gt;2. Resetting text-align&lt;/h4&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;The only problem with this new rule is that all content on the page is now center-aligned. To overcome the center alignment problem, a new declaration is added within the containing block rule set – “text-align: left”. The final CSS code is:&lt;/div&gt;&lt;pre class=&quot;codesample&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #444444; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: white; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 115%/normal courier, monaco, monospace; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;body
{
 text-align: center;
}

div#container
{
 margin-left: auto;
 margin-right: auto;
 width: 50em;
 text-align: left;
}&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 115%/normal courier, monaco, monospace; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/319820536709144905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/06/css-center-or-centering-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/319820536709144905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/319820536709144905'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/06/css-center-or-centering-object.html' title='CSS Center or Centering an Object'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-4933531090591485634</id><published>2011-06-04T13:44:00.000+08:00</published><updated>2011-06-04T13:44:02.987+08:00</updated><title type='text'>Alim Ul Karim&#39;s Blog: Database First Approach / DB First Approach / MVC3</title><content type='html'>&lt;a href=&quot;http://auk-port.blogspot.com/2011/05/how-to-create-database-first-in-aspnet.html?spref=bl&quot;&gt;Alim Ul Karim&#39;s Blog: How to Create Database First in ASP.NET MVC3/MVC 3...&lt;/a&gt;: &quot;If you are new in ASP . NET  MVC  / MVC3  or in EntityFramework  ( EF ) you should look for some articles  before read this topic. If you ar...&quot;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Alim Ul Karim&#39;s Blog: Database First Approach / DB First Approach / MVC3&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/4933531090591485634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/06/alim-ul-karims-blog-database-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4933531090591485634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/4933531090591485634'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/06/alim-ul-karims-blog-database-first.html' title='Alim Ul Karim&#39;s Blog: Database First Approach / DB First Approach / MVC3'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2131270493952678781</id><published>2011-06-01T01:00:00.002+08:00</published><updated>2011-06-01T01:13:15.082+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C compiler error"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ IDE setup"/><category scheme="http://www.blogger.com/atom/ns#" term="Code Blocks Installation Process Step by Step"/><title type='text'>How to install Code::Blocks GCC Compiler / C Compiler / OpenSource Cross Platform C++ compiler  Correctly in your machine(windows) / computer / pc</title><content type='html'>&lt;h1&gt;&lt;span style=&quot;display: none; font-family: &#39;Trebuchet MS&#39;, &#39;Segoe UI&#39;, tahoma, sans-serif;&quot;&gt;&lt;strong&gt;How&lt;/strong&gt; &lt;strong&gt;to&lt;/strong&gt; &lt;strong&gt;install&lt;/strong&gt; &lt;strong&gt;Code&lt;/strong&gt;&lt;strong&gt;::&lt;/strong&gt;&lt;strong&gt;Blocks&lt;/strong&gt; &lt;strong&gt;GCC&lt;/strong&gt; &lt;strong&gt;Compiler&lt;/strong&gt; / &lt;strong&gt;C&lt;/strong&gt; &lt;strong&gt;Compiler&lt;/strong&gt; / &lt;strong&gt;OpenSource&lt;/strong&gt; &lt;strong&gt;Cross&lt;/strong&gt; &lt;strong&gt;Platform&lt;/strong&gt; &lt;strong&gt;C++ &lt;/strong&gt;&lt;strong&gt;compiler&lt;/strong&gt; &amp;nbsp;&lt;strong&gt;Correctly&lt;/strong&gt; in your &lt;strong&gt;machine&lt;/strong&gt;(&lt;strong&gt;windows&lt;/strong&gt;) / &lt;strong&gt;computer&lt;/strong&gt; / &lt;strong&gt;pc&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h1 style=&quot;display: none;&quot;&gt;&amp;nbsp;&lt;strong&gt;Open&lt;/strong&gt; &lt;strong&gt;Source&lt;/strong&gt; &lt;strong&gt;Cross&lt;/strong&gt; &lt;strong&gt;Platform&lt;/strong&gt; &lt;strong&gt;IDE&lt;/strong&gt; for &lt;strong&gt;C++&lt;/strong&gt; / &lt;strong&gt;Code&lt;/strong&gt; &lt;strong&gt;Blocks&lt;/strong&gt; / &lt;strong&gt;C&lt;/strong&gt; &lt;strong&gt;Compiler&lt;/strong&gt;&lt;/h1&gt;&lt;h1 style=&quot;display: inherit; font-size: 12px; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, &#39;Segoe UI&#39;, tahoma, sans-serif;&quot;&gt;Many of us downloaded the &lt;strong&gt;code&lt;/strong&gt; &lt;strong&gt;blocks&lt;/strong&gt; (&lt;strong&gt;&lt;a href=&quot;http://www.codeblocks.org/downloads/26&quot; title=&quot;Code Blocks Download Url 23 MB&quot;&gt;codeblocks-10.05-setup.exe&lt;/a&gt;&lt;/strong&gt;) 23 MB version which doesn&#39;t have any &lt;strong&gt;compilers&lt;/strong&gt; , consequently all &lt;strong&gt;default&lt;/strong&gt; installation doesn&#39;t give you the &lt;strong&gt;correct&lt;/strong&gt; result that you have been &lt;strong&gt;expecting&lt;/strong&gt;.&lt;/span&gt;&lt;/h1&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;The correct version you should download &lt;a href=&quot;http://www.codeblocks.org/downloads/26&quot; title=&quot;Code Blocks Download 73 MB&quot;&gt;codeblocks-10.05mingw-setup.exe&lt;/a&gt; which is approximately 73 MB &amp;nbsp;and has GCC compilers ; which will give you the correct result that you have been expecting for.&lt;/div&gt;&lt;h1 style=&quot;display: inherit; font-size: 12px; font-weight: normal;&quot;&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/h1&gt;&lt;h1 style=&quot;display: inherit;&quot;&gt;&lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Code&lt;/strong&gt; &lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Block&lt;/strong&gt; &lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;C&lt;/strong&gt; &lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Compiler&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt; (&lt;/span&gt;&lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;light&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;-&lt;/span&gt;&lt;strong style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;weight&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;) &lt;/span&gt;&lt;strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Installation&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Settings&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;:&lt;/span&gt;&lt;/h1&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbv5QtXAx-oOtNw-7Ozws-Kyra5pB2xXbW9GEKofR9H9IcbSV03V-eCLCjB52TBjbLuzqTERKE0GeCSPq4V46O_WeHDcHQEw7sTB_QQcjixEz3LEggZ_LUkD_ZDn0TEmzKrmHBiO-3cV9R/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbv5QtXAx-oOtNw-7Ozws-Kyra5pB2xXbW9GEKofR9H9IcbSV03V-eCLCjB52TBjbLuzqTERKE0GeCSPq4V46O_WeHDcHQEw7sTB_QQcjixEz3LEggZ_LUkD_ZDn0TEmzKrmHBiO-3cV9R/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;First Screen After Installing &lt;b&gt;Code&lt;/b&gt;::&lt;b&gt;Blocks&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUiDHyUQ_gHk7TKaVAldhYpLBcGJrBAo9wklpckFuPZbsSo6QvyqnH3oldR7_xS_YxUi21p6WX-4cnWGJgRwZeFbcr_MxeqjUvZveyTSoCD1GZRsvByA4QveU7wLGp-kGZg5Wi6YaiUvlN/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUiDHyUQ_gHk7TKaVAldhYpLBcGJrBAo9wklpckFuPZbsSo6QvyqnH3oldR7_xS_YxUi21p6WX-4cnWGJgRwZeFbcr_MxeqjUvZveyTSoCD1GZRsvByA4QveU7wLGp-kGZg5Wi6YaiUvlN/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Click on that radio button and hit ok.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmUCYnfCOSue9XT4JHg4QyXTbJa0i_Y_y4DqSQQPVCxQUufGAQv6OItjRiU64ofUU2Kamb-1U8yVvzKPr74YfLQ_rsebyD0iF_G28NRqc7OCyUBlTI-J3-DMAGjLhl8zvq2l3IGK-66SPO/s1600/3+First+look.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmUCYnfCOSue9XT4JHg4QyXTbJa0i_Y_y4DqSQQPVCxQUufGAQv6OItjRiU64ofUU2Kamb-1U8yVvzKPr74YfLQ_rsebyD0iF_G28NRqc7OCyUBlTI-J3-DMAGjLhl8zvq2l3IGK-66SPO/s400/3+First+look.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;After&amp;nbsp;&lt;b&gt;Configuration&amp;nbsp;&lt;/b&gt;First look of the &lt;b&gt;Code&lt;/b&gt;::&lt;b&gt;Blocks IDE&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw0aESlVLRmq9r8jQix5YTHhkIKE1ShugoKCPgia4x9aFBetx2T4G285ul8ByUMXfCWwEQwXM4UaCi_qTM2uv8jhQidDQ4Fr4WxFZszLKgAQeU1X3n4vrFjcGE2pgGaSFQ1UbqJUnbM3Ez/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw0aESlVLRmq9r8jQix5YTHhkIKE1ShugoKCPgia4x9aFBetx2T4G285ul8ByUMXfCWwEQwXM4UaCi_qTM2uv8jhQidDQ4Fr4WxFZszLKgAQeU1X3n4vrFjcGE2pgGaSFQ1UbqJUnbM3Ez/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Making the Editor better - Font Size , Fonts etc...&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq4CtA_sTghgdLThE2jHaBA-BkVM9aypYKsEjybYoWvV_od3JEAxonUHvKH8U19mgMg29rdIDXUN1hmwlOllQjB0rfYQLNs1u1tPij4-TBxNksgL0GJysMmeo8euaw5_6MoORAkti_7ezg/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq4CtA_sTghgdLThE2jHaBA-BkVM9aypYKsEjybYoWvV_od3JEAxonUHvKH8U19mgMg29rdIDXUN1hmwlOllQjB0rfYQLNs1u1tPij4-TBxNksgL0GJysMmeo8euaw5_6MoORAkti_7ezg/s400/5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf6orvn4xeup8AZg5s4cxPCCcTJYz4Dtf1ht66S8oWnyAPnZ3AzUvZyg4wXyQcBektAtaz4L4QgQonneo46IBYYpMRi8hNVGP6rCXRBlClgf-YGkC15zC6IYBnN8WTzvlpALWBf0MSS-uK/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf6orvn4xeup8AZg5s4cxPCCcTJYz4Dtf1ht66S8oWnyAPnZ3AzUvZyg4wXyQcBektAtaz4L4QgQonneo46IBYYpMRi8hNVGP6rCXRBlClgf-YGkC15zC6IYBnN8WTzvlpALWBf0MSS-uK/s400/6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKMfVERj_7jrNnIVSIfA4wFMXK523f8wDzolaQnhKFZc5W4AG3O1qqQtdwxH4PUBuscDe7RdxvGnZVk2UvZEAfmLnpZvWvZGAjbJ4STb9IuKAeiAXoqyREWGqsonAAUogINcwP8iERkJuv/s1600/7+better+editor+experience.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKMfVERj_7jrNnIVSIfA4wFMXK523f8wDzolaQnhKFZc5W4AG3O1qqQtdwxH4PUBuscDe7RdxvGnZVk2UvZEAfmLnpZvWvZGAjbJ4STb9IuKAeiAXoqyREWGqsonAAUogINcwP8iERkJuv/s640/7+better+editor+experience.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;see now you have better fonts and looks than before.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Now you can run your c++ or c codes from the Built Menu item.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMS_CZUcJP9z0MuYsibE2khU9STpE562UCUEW_o0Y3QBurP8ETtHbA90NIg9YEq3t-rH7G_V9nsJhFyZG0IhjGpQ8rw1d0SLiw2iC-YRRe9Z4_97mOXIZVAonNhRd0Fm5CtIbx00v4NDE/s1600/8+Code+Compiled+Correctly.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMS_CZUcJP9z0MuYsibE2khU9STpE562UCUEW_o0Y3QBurP8ETtHbA90NIg9YEq3t-rH7G_V9nsJhFyZG0IhjGpQ8rw1d0SLiw2iC-YRRe9Z4_97mOXIZVAonNhRd0Fm5CtIbx00v4NDE/s640/8+Code+Compiled+Correctly.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Suppose you had installed that correct version but still your code isn&#39;t compiling , now what should you do?&lt;br /&gt;
&lt;br /&gt;
Goto &lt;b&gt;[Settings]&lt;/b&gt; -&amp;gt; &lt;b&gt;[ Compiler and Debugger ]&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;You should check and follow below images to &lt;b&gt;configure &lt;/b&gt;your &lt;b&gt;code blocks&amp;nbsp;compiler&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6O_iWt6h86wYTfkwCu9sySeYTJKBbqOFDbhmgKl8vt6LvV7LxvB3wh0p_gqbnjFVX6UtBNA8JahRuxf1PknFHhqtthheERjZWYsqnmj20E0CFYx5iD_JsRQnUnUcd-DHcoP4j6Dz32Whw/s1600/9+if+code+still+compiler+doesn%2527t+work+%252C+then+follow+those+selection.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6O_iWt6h86wYTfkwCu9sySeYTJKBbqOFDbhmgKl8vt6LvV7LxvB3wh0p_gqbnjFVX6UtBNA8JahRuxf1PknFHhqtthheERjZWYsqnmj20E0CFYx5iD_JsRQnUnUcd-DHcoP4j6Dz32Whw/s400/9+if+code+still+compiler+doesn%2527t+work+%252C+then+follow+those+selection.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Select those options as shown.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjZitWijwwdW76pLI2ThtLccLICc37V5uELj4TKQfv70vGgr4STiqh71uhrvaeBK5zuWOUX3mNJjhkTI93LEA8PUoj_MmvjY_Gw94irbi3DSaDhs-IueNC9nJTQCc5u10WE2y1f7RHFgl0/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjZitWijwwdW76pLI2ThtLccLICc37V5uELj4TKQfv70vGgr4STiqh71uhrvaeBK5zuWOUX3mNJjhkTI93LEA8PUoj_MmvjY_Gw94irbi3DSaDhs-IueNC9nJTQCc5u10WE2y1f7RHFgl0/s400/10.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Select as shown and hit ok.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;display: none;&quot;&gt;Seo Texts:&lt;br /&gt;
&lt;strong&gt;Code&lt;/strong&gt; :: &lt;strong&gt;Blocks&lt;/strong&gt; , &lt;strong&gt;C&lt;/strong&gt; &lt;strong&gt;Compilers&lt;/strong&gt; &lt;strong&gt;Problem&lt;/strong&gt; , &lt;strong&gt;Code&lt;/strong&gt; :: &lt;strong&gt;Blocks&lt;/strong&gt; &lt;strong&gt;Installation&lt;/strong&gt; &lt;strong&gt;Process&lt;/strong&gt; &lt;strong&gt;Step&lt;/strong&gt; by &lt;strong&gt;Step&lt;/strong&gt; ,  &lt;strong&gt;GCC&lt;/strong&gt; &lt;strong&gt;Complier&lt;/strong&gt; &lt;strong&gt;Problems&lt;/strong&gt; , &lt;strong&gt;C++&lt;/strong&gt; &lt;strong&gt;Cross&lt;/strong&gt; &lt;strong&gt;Platform&lt;/strong&gt; &lt;strong&gt;Free&lt;/strong&gt; &lt;strong&gt;IDE&lt;/strong&gt;&lt;br /&gt;
&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2131270493952678781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/05/how-to-install-codeblocks-gcc-compiler.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2131270493952678781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2131270493952678781'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/05/how-to-install-codeblocks-gcc-compiler.html' title='How to install Code::Blocks GCC Compiler / C Compiler / OpenSource Cross Platform C++ compiler  Correctly in your machine(windows) / computer / pc'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbv5QtXAx-oOtNw-7Ozws-Kyra5pB2xXbW9GEKofR9H9IcbSV03V-eCLCjB52TBjbLuzqTERKE0GeCSPq4V46O_WeHDcHQEw7sTB_QQcjixEz3LEggZ_LUkD_ZDn0TEmzKrmHBiO-3cV9R/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2895443228979820386.post-2329322914750573987</id><published>2011-05-27T13:22:00.006+08:00</published><updated>2011-09-06T03:40:47.339+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="difference"/><category scheme="http://www.blogger.com/atom/ns#" term="interview"/><category scheme="http://www.blogger.com/atom/ns#" term="primary key"/><category scheme="http://www.blogger.com/atom/ns#" term="questions"/><category scheme="http://www.blogger.com/atom/ns#" term="unique key"/><title type='text'>Interview Questions: What is the difference between unique-key and primary-key in database (Oracle , Microsoft SQL Server, Access , MySQL etc)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 class=&quot;Apple-style-span&quot; style=&quot;display: none; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Interview &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Questions&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;: &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;What &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;is &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;the &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;difference&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;between &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;unique&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;key &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;and &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;primary&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;key &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;in &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;database &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Oracle &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Microsoft&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;SQL &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Server&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Access &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;MySQL &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;etc...&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;)&lt;/span&gt;&lt;/h1&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;This is a mature question , I myself had faced this question in an interview but couldn&#39;t describe all the points but I was able to describe the main key point of this question &quot;What is the difference between unique-key and primary-key in database&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;The main key points of this question(&amp;nbsp;&quot;&lt;b&gt;What is the difference between unique&lt;/b&gt;-&lt;b&gt;key &lt;/b&gt;and &lt;b&gt;primary&lt;/b&gt;-&lt;b&gt;key&lt;/b&gt; in &lt;b&gt;database&lt;/b&gt;&quot;)&amp;nbsp;is below number 1,2.&lt;/span&gt;&lt;br /&gt;
&lt;h1 style=&quot;display: inline;&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px; font-weight: normal;&quot;&gt;1) &lt;b&gt;Unique&lt;/b&gt; &lt;b&gt;key (UK)&amp;nbsp;&lt;/b&gt;can be &lt;b&gt;null &lt;/b&gt;but&amp;nbsp;&lt;b&gt;Primary&amp;nbsp;key &lt;/b&gt;can&#39;t be &lt;b&gt;null&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;2)&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 12px;&quot;&gt;Primary&amp;nbsp;key (&lt;/b&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;b&gt;PK)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;can be&amp;nbsp;referenced&amp;nbsp;to other &lt;b&gt;Data&lt;/b&gt;-&lt;/span&gt;&lt;b style=&quot;font-size: 12px;&quot;&gt;tables&amp;nbsp;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;as a&amp;nbsp;&lt;b&gt;Foreign&lt;/b&gt;(&lt;b&gt;FK&lt;/b&gt;) but&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;b&gt;Unique&lt;/b&gt;&amp;nbsp;&lt;b&gt;key (UK)&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;can&#39;t play this role.&lt;/span&gt;&lt;br /&gt;
&lt;h1 style=&quot;display: inline;&quot;&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;3) We can have multiple &lt;b&gt;unique&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;keys(UK)&amp;nbsp;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;in a table but in the case of&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-size: 12px;&quot;&gt;Primary&amp;nbsp;key (&lt;/b&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;b&gt;PK)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;there should be only one.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;4) And also a primary key creates a cluster-index by default but unique key creates a non-cluster-index by default.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;More&amp;nbsp;Explanation:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Primary Key &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;is a &lt;/span&gt;combination &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;of &lt;/span&gt;Unique &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;and &lt;/span&gt;NOT NULL&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;Constraints &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;so it can’t have &lt;/span&gt;duplicate &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;values or any &lt;/span&gt;null values&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Moreover in&amp;nbsp;&lt;/span&gt;Oracle Databases&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, &amp;nbsp;&lt;/span&gt;UNIQUE Key Columns &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;can have any number of &lt;/span&gt;NULL values&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, however in MS SQL Server/&amp;nbsp;&lt;/span&gt;Microsoft-Access&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; can only have one &lt;/span&gt;NULL &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;value in &amp;nbsp;their &lt;/span&gt;unique key column&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;What is Foreign Key:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Foreign_key&quot;&gt;http://en.wikipedia.org/wiki/Foreign_key&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px; font-weight: normal; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;display: none; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;SEO LABELS:&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Related links in &lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;What&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; is the &lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;difference&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;between&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;unique&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;-&lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;key&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; and &lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;primary&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;-&lt;/span&gt;&lt;strong style=&quot;font-size: 14px;&quot;&gt;key&lt;/strong&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/h1&gt;&lt;ul&gt;&lt;li title=&quot;What is the difference between unique-key and primary-key&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;What is the difference between unique-key and primary-key&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/05/interview-questions-what-is-difference.html&quot; title=&quot;What is the difference between unique-key and primary-key&quot;&gt;&lt;em&gt;What&lt;/em&gt; &lt;em&gt;is&lt;/em&gt; &lt;em&gt;the&lt;/em&gt; &lt;em&gt;difference&lt;/em&gt; &lt;em&gt;between&lt;/em&gt; &lt;em&gt;unique&lt;/em&gt;-&lt;em&gt;key&lt;/em&gt; and &lt;em&gt;primary&lt;/em&gt;-&lt;em&gt;key&lt;/em&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;/li&gt;
&lt;li title=&quot;Difference between unique-key and primary-key&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Difference between unique-key and primary-key&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/05/interview-questions-what-is-difference.html&quot; title=&quot;Difference between unique-key and primary-key&quot;&gt;                 &lt;strong&gt;&lt;em&gt;Difference&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;between&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;unique&lt;/em&gt;&lt;/strong&gt;-&lt;strong&gt;&lt;em&gt;key&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;primary&lt;/em&gt;&lt;/strong&gt;-&lt;strong&gt;&lt;em&gt;key&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;/li&gt;
&lt;li title=&quot;Uniquekey and primarykey Difference&quot;&gt;&lt;h1 style=&quot;display: inline; font-size: 14px; font: Calibri,verdana, &#39;Trebuchet MS&#39;, sans-serif;&quot; title=&quot;Uniquekey and primarykey Difference&quot;&gt;&lt;a href=&quot;http://auk-port.blogspot.com/2011/05/interview-questions-what-is-difference.html&quot; title=&quot;Uniquekey and primarykey Difference&quot;&gt;&lt;strong&gt;&lt;em&gt;Uniquekey&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;and&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;primarykey&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;Difference&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;font-family: Calibri, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px;&quot;&gt; &lt;strong&gt;SEO&lt;/strong&gt; &lt;strong&gt;Labels&lt;/strong&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: inline; float: left; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Uniquekey and primarykey Difference&quot;&gt;&lt;strong&gt;Uniquekey&lt;/strong&gt; and &lt;strong&gt;primarykey&lt;/strong&gt; &lt;strong&gt;Difference&lt;/strong&gt; ,&amp;nbsp;&lt;/h1&gt;&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;What is the difference between unique-key and primary-key&quot;&gt;&lt;strong&gt;What&lt;/strong&gt; &lt;strong&gt;is&lt;/strong&gt; the &lt;strong&gt;&lt;em&gt;difference&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;between&lt;/strong&gt; &lt;strong&gt;unique&lt;/strong&gt;-&lt;em&gt;&lt;strong&gt;key&lt;/strong&gt;&lt;/em&gt; and &lt;strong&gt;&lt;em&gt;primary&lt;/em&gt;&lt;/strong&gt;-&lt;strong&gt;&lt;em&gt;key&lt;/em&gt;&lt;/strong&gt; ,&amp;nbsp;&lt;/h1&gt;&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Interview Questions: What is the difference between unique-key and primary-key&quot;&gt;&lt;strong&gt;Interview&lt;/strong&gt; &lt;strong&gt;Questions&lt;/strong&gt;: &lt;strong&gt;What&lt;/strong&gt; is the &lt;strong&gt;difference&lt;/strong&gt; &lt;strong&gt;between&lt;/strong&gt; &lt;strong&gt;unique&lt;/strong&gt;-key and &lt;strong&gt;primary&lt;/strong&gt;-key ,&amp;nbsp;&lt;/h1&gt;&lt;h1 style=&quot;display: inline; font-family: &#39;Calibri&#39;, verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 12px;&quot; title=&quot;Interview Questions: Foreign ,Key, Primary ,Key, Unique, Key&quot;&gt;&lt;strong&gt;&lt;em&gt;Foreign&lt;/em&gt;&lt;/strong&gt; ,&lt;strong&gt;&lt;em&gt;Key&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;Primary&lt;/em&gt;&lt;/strong&gt; ,&lt;strong&gt;&lt;em&gt;Key&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;Unique&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;Key&lt;/em&gt;&lt;/strong&gt; &lt;br /&gt;
&lt;/h1&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://auk-port.blogspot.com/feeds/2329322914750573987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://auk-port.blogspot.com/2011/05/interview-questions-what-is-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2329322914750573987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2895443228979820386/posts/default/2329322914750573987'/><link rel='alternate' type='text/html' href='http://auk-port.blogspot.com/2011/05/interview-questions-what-is-difference.html' title='Interview Questions: What is the difference between unique-key and primary-key in database (Oracle , Microsoft SQL Server, Access , MySQL etc)'/><author><name>Alim Ul Karim</name><uri>http://www.blogger.com/profile/02025488699062770783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhud4g4lkHX3Rh020wVpLSwqTieyAlTkk1lHOKPKgqdY3UKHCFWzPgi_qr7IJUEAZlLeCebZOARbFxYBlEWb9cECDC64DE-6feF1oEwhHHwYqrA7fsM-fYnJi6JoCDO1bDvb99Yck4paP8zfXtz0tWo3SA7xh8C3tlBwRSLITX-O1XrZQ/s1600/WhatsApp%20v3.jpg'/></author><thr:total>0</thr:total></entry></feed>