<?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-228211343371184003</id><updated>2025-04-11T03:52:08.582+05:30</updated><category term="Array"/><category term="Operators in C Language"/><category term="Function"/><category term="Control Structure"/><category term="Loops and Statements"/><category term="Algorithm And Flowchart"/><category term="Arithmetic Operators"/><category term="Assignment Operator"/><category term="Bitwise Operator"/><category term="C Pre-processor"/><category term="Compound Assignment Operator"/><category term="Conditional Operator/ Special Operator"/><category term="Features Of C Language"/><category term="First Program In C"/><category term="Format Specifier And Escape Sequence"/><category term="Header Files"/><category term="History Of C Language"/><category term="If Statement"/><category term="If-Else Statement"/><category term="If-Else-If Ladder"/><category term="Increment and Decrement Operator"/><category term="Logical Operator"/><category term="Nested If"/><category term="Relational Operator"/><category term="Structure"/><category term="Switch Statement"/><category term="Tokens in C Language"/><category term="Translator And Compiler Vs Interpreter"/><category term="Uses And Environment For C  Language"/><title type='text'>Introduction of C Language</title><subtitle type='html'>&quot; The Techprogramiz is a computer science portal for C language. It contains well written, well thought and well explained C programming articles,basic to advance level&quot;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-5891068733366282683</id><published>2023-07-08T16:13:00.014+05:30</published><updated>2023-07-23T09:49:04.298+05:30</updated><title type='text'>More On Structure Of C Language</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1-&lt;span style=&quot;color: red;&quot;&gt; &lt;u&gt;Array Of Structure&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;The way we have &quot;array of int&#39;s&quot;,&quot;array of float&quot;,&quot;array of char&quot; similarly we have &quot;array of structure&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;Array of structure is nothing but finite number of homogeneous structure variable,belonging to a structure.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;Contiguous memory is allocated for array of structure.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;We use array of structure when there is a need of large number of structure variable of same type.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;{ struct emp&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { char name[15];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int age;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;float ht;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct emp e[5];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i=0;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;for(i=0;i&amp;lt;5;i++)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{printf(&quot;Enter name,age&amp;amp;height&quot;):&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;scanf(&quot;%s %d %f &quot;,&amp;amp;e[i].name,&amp;amp;e[i].age,&amp;amp;e[i].ht);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;for(i=0;i&amp;lt;5;i++)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;\n Name=%s,Age=%d,Height=%f&quot;,e[i].name,e[i].age,e[i].ht);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Enter name,age&amp;amp;height Sudarshan&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;5.2&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Name=&amp;nbsp;Sudarshan,Age=21,Height=5.2&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;2-&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;u&gt;Copying Structure Variable&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The way we can assign the value of one integer variable into another integer type variable,value of one float variable into another float type variable,similarly we can assign the value of one structure variable into another structure variable of same type.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/5891068733366282683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2023/07/more-on-structure-of-c-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5891068733366282683'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5891068733366282683'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2023/07/more-on-structure-of-c-language.html' title='More On Structure Of C Language'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-3328638499051887312</id><published>2021-01-03T12:31:00.005+05:30</published><updated>2023-07-23T09:49:19.374+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Structure"/><title type='text'>Structure In C Language</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&amp;nbsp;&lt;u&gt;Introduction&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Structure can be defined as,&quot;A finite collection of heterogenous elements&quot;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;A Keyword &quot;Struct&quot; is used to declare&amp;nbsp; a structure.&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;struct structure name&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ datatype member name 1;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datatype member name 2;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datatype member name n;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;struct Emp&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&amp;nbsp;&lt;/b&gt;&lt;b&gt;int id;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;char name[10];&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b&gt;float salary;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The structure declaration, however does not allocate any memory or consume storage space.Memory allocated for the structure,when we declare a variable of the structure.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&lt;/span&gt;struct Emp&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b&gt;int id;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;char name[10];&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b&gt;float salary;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;struct Emp e1;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;After the compilation of above code,the memory is allocated for the structure variable e1.&lt;/li&gt;&lt;/ul&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/AVvXsEh8QeS0b3Rkx_bIzFqnNUA_d95Z_ZMlSoGciHFlBx_bFTk2JTr1-dVk4sE8cLChxAnetqeorDPTdHhHLtkmLxshqKDBT7JGgu3cOvcXlrgQsFq0qSEH79U6mC331OeNIUvA4PE6PSW78-c/s802/structure_memory_allocation.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;techprogramiz&quot; border=&quot;0&quot; data-original-height=&quot;210&quot; data-original-width=&quot;802&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8QeS0b3Rkx_bIzFqnNUA_d95Z_ZMlSoGciHFlBx_bFTk2JTr1-dVk4sE8cLChxAnetqeorDPTdHhHLtkmLxshqKDBT7JGgu3cOvcXlrgQsFq0qSEH79U6mC331OeNIUvA4PE6PSW78-c/w400-h105/structure_memory_allocation.png&quot; title=&quot;Structure in C&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;sizeof(e1)=4+10+4 =&amp;gt;18 bytes&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;u&gt;Initialization Of Structure Variable&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A Structure can be initialize in the same way as other datatype are initialize.Initializing a structure means assigning some constant to member of the structure.&lt;/li&gt;&lt;li&gt;A Structure can be initialize by providing legal values,according to the structure member to structure variable in the following manner.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;struct Emp&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;int id;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;char name[10];&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b&gt;float salary;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;struct emp e1={0001,&quot;Sudarshan&quot;,20000.78};&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;u&gt;Accessing Structure Element&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Individual member of a structure variable are referenced by using dot (.) notation in the following manner.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&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&gt;&lt;b&gt;structure variable name&lt;span style=&quot;font-size: medium;&quot;&gt;.&lt;/span&gt;member name;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;color: #2b00fe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b&gt;e1.id;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;e1.name;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;e1.salary;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;u&gt;Initialization Of Structure Variable At Runtime&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A structure variable can also be initialize at runtime in following manner-:&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Program&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;struct Emp&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ int id;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;char name[15];&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;float per;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;struct emp e1={0001,&quot;Sudarshan&quot;,20000.78},e2;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;Enter the id,name and salary-:&quot;);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;scanf(&quot; %d %s %f &quot;,&amp;amp;e2.id,&amp;amp;e2.name,&amp;amp;e2.salary);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;\n Structure Variable Have The Following Value:-\n&quot;);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;ID=%d,NAME=%s,SALARY=%f&quot;,e1.id,e1.name,e1.salary\n);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;ID=%d,NAME=%s,SALARY=%f&quot;,e2.id,e2.name,e2.salary);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Enter the id,name and salary-:0002&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Arun&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;25000.782&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Structure Variable Have The Following Value:-&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;ID=0001 NAME=Sudarshan SALARY=20000.78&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;ID=0002 NAME=Arun SALARY=25000.78&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;u&gt;Finding Structure Size&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;The &lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;sizeof&lt;/span&gt;&lt;/b&gt; operator is a uniary operator used to calculate the sizeof data type,this operator is applied at all the data type.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;The operator return the sizeof the variable or expression in bytes, To calculate the size of structure using the sizeof operator the following syntax is used.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;Variable=&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;sizeof&lt;/b&gt;&lt;/span&gt;(structure variable name);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Program&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div&gt;struct Emp&lt;/div&gt;&lt;div&gt;{ int id;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;char name[15];&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;float per;&lt;/div&gt;&lt;div&gt;};&lt;/div&gt;&lt;div&gt;struct emp e1={0001,&quot;Sudarshan&quot;,20000.78};&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;\n Size of Emp is %d&quot;.,sizeof(e1));&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Size of Emp is 18.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/3328638499051887312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2021/01/structure-in-c-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3328638499051887312'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3328638499051887312'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2021/01/structure-in-c-language.html' title='Structure In C Language'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8QeS0b3Rkx_bIzFqnNUA_d95Z_ZMlSoGciHFlBx_bFTk2JTr1-dVk4sE8cLChxAnetqeorDPTdHhHLtkmLxshqKDBT7JGgu3cOvcXlrgQsFq0qSEH79U6mC331OeNIUvA4PE6PSW78-c/s72-w400-h105-c/structure_memory_allocation.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3717625 79.4473309</georss:point><georss:box>-1.5017498375244216 44.2910809 58.24527483752442 114.6035809</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-5250497565216639712</id><published>2020-10-11T01:54:00.002+05:30</published><updated>2023-07-21T08:58:22.083+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Storage Class Specifier-:</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The type of data refer the size of memory for a variable.These variable also has storage class that reffer the life and scope of variable,within program i.e. within block or function.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;There are four types of &lt;b&gt;Storage Class Specifier&lt;/b&gt;-:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Automatic Variable&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Static Variable&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Register Variable&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;extern variable&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;155&quot; data-original-width=&quot;614&quot; height=&quot;99&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5YaHXGZ2JT23xTf0C9UGFg6q_UJxt5rpdKsc15nyx-r4GMCKpTrb9RqumyrbKJRwyk78QumFIG4ZaaF6pUKshC_bJaoTttEFoDWSCLTbLQLbv5Dtr5HRGrmavTdBQ8b10iGYmoQq2e-w/w391-h99/hhhh.png&quot; style=&quot;text-align: center;&quot; width=&quot;391&quot; /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Automatic Variable&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The local variable which are declared inside the function are called automatic variable.&lt;/li&gt;&lt;li&gt;All the variable declare,without any storage class specifier are assumed to be automatic variable.&lt;/li&gt;&lt;li&gt;The scope of the variable is,inside function or block in which they are declared.&lt;/li&gt;&lt;li&gt;We can use the same automatic user in different function because after the execution of a function,all automatic C variable are disposed off.&lt;/li&gt;&lt;li&gt;The keyword of automatic storage class is&quot;auto&quot;.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;{ int m=5;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;clrscr();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;printf(&quot;\n %d &quot;,m);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;fun1()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;printf(&quot;\n Now %d&quot;,m);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;getch();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;fun1(int m)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;{printf(&quot;\n Now %d &quot;,m);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;u&gt;Static Variable&lt;/u&gt;-:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;They are same as the automatic variable but it holds the latest value of the variable in the blocks or function in which they are declared.&lt;/li&gt;&lt;li&gt;They are of two types-:&lt;/li&gt;&lt;/ul&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Internal Static Variable&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;External Static Variable&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A Variable can be declare static by using the keyword static.&lt;/li&gt;&lt;li&gt;The default initialization of static variable is 0.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;u&gt;Internal Static Variable&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;They are those which are declared inside a function,the scope of internal static variable extends upto the end of function in which they are defined.&lt;/li&gt;&lt;li&gt;Therefore internal static variable are similar to automatic variable except that they remain in existence,throughout the remainder of the program.So,internal static variable is used to retain values between function false.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;{int i;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;for(i=0;i&amp;lt;=3;i++)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;fun1()&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;fun1()&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ static int x=1;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;printf(&quot;x=%d&quot;);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;x++;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;External Static Variable&lt;/u&gt;-:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;An external static variable is declare outside of all the function and is available to all the function in that program.&lt;/li&gt;&lt;li&gt;The difference between an external static variable and external variable that external variable is used in the function in which it is define while external variable can be used by other file also.&lt;/li&gt;&lt;li&gt;Static variable are created in a place in memory called &quot;Data Segment&quot;.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Example&lt;/u&gt; -:&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; #include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; static int 10;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; main()&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ no.=5;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;printf(&quot;\n main no.=%d \n&quot;,no);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;fun1();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;fun2();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;printf(&quot;After function call no.=%d&quot;,no);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;fun1();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ int x=5;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;no.= no+x;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;printf(&quot;\n fun1() no.=%d&quot;,no);&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;fun2()&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{int x=5;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;no=no+5;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;printf(&quot;\n fun2() no=%d\n&quot;,no);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Register Variable&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Register variable are used for storing the value of variable into CPU rrgister.&lt;/li&gt;&lt;li&gt;Access time of automatic variable is more than accessing the register variable because the automatic register are store in memory and access time of CPU register take less time than the access time of the variable,which is stored in the memory.&lt;/li&gt;&lt;li&gt;So,the variable which are heavily used can be assign on register variable for fast processing.&lt;/li&gt;&lt;/ul&gt;&amp;nbsp; &lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&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; &amp;nbsp; &amp;nbsp;&amp;nbsp;register&lt;/b&gt;&amp;nbsp;datatype variablename;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Where &quot;register&quot; is keyword,the&quot;&amp;amp;&quot; operator is not used with the register variable.So we can not retrieve the address of the register variable.&lt;/li&gt;&lt;/ul&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;u&gt;External Variable&lt;/u&gt;-:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Variable&lt;b&gt;&amp;nbsp;&lt;/b&gt;that are both alive and active throughout the entire program are known as external variable and they are also known as global variable.&lt;/li&gt;&lt;li&gt;These variable are available to all function in the program.These are declared before the main() and by default it take the initial value zero .&lt;/li&gt;&lt;li&gt;The syntax to declare the external variable is as follow-:&lt;/li&gt;&lt;/ul&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;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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; &amp;nbsp; &amp;nbsp; extern&lt;/b&gt;&amp;nbsp;datatype variablename;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/5250497565216639712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/10/storage-class-specifier.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5250497565216639712'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5250497565216639712'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/10/storage-class-specifier.html' title='Storage Class Specifier-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5YaHXGZ2JT23xTf0C9UGFg6q_UJxt5rpdKsc15nyx-r4GMCKpTrb9RqumyrbKJRwyk78QumFIG4ZaaF6pUKshC_bJaoTttEFoDWSCLTbLQLbv5Dtr5HRGrmavTdBQ8b10iGYmoQq2e-w/s72-w391-h99-c/hhhh.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3717625 79.4473309</georss:point><georss:box>-1.5017318535406439 44.2910809 58.245256853540639 114.6035809</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-1165138339841914644</id><published>2020-09-03T07:31:00.002+05:30</published><updated>2023-07-21T08:58:39.579+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Recursion In Function-:</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A function that called itself is known as recursive function and the process of calling function itself is known as Recursion.&lt;/li&gt;&lt;li&gt;The default data structure used in recursion is STACK.&lt;/li&gt;&lt;li&gt;Recursion works slower than loop.&lt;/li&gt;&lt;li&gt;Recursion is more alignment few variable,which make program clean.&lt;/li&gt;&lt;li&gt;It is hard to think a logic of recursive function it is also difficult to debug the code containing recursion.&lt;/li&gt;&lt;/ul&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;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://techprogramiz.blogspot.com/&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;techprogramiz&quot; border=&quot;0&quot; data-original-height=&quot;706&quot; data-original-width=&quot;800&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixmXqMhJpho84BU3NRkUY26ohyLWRh2CC-QV98L_CrZSBRHC4oywsAGXYWObr6dmiKWFJta3IPsFveANIxoWZSdwzRBu236P8ut6QZtG4vZlS26v5umXBQnaZG-rA8BJf7LexJ8Gf-5eY/w328-h290/465726_1_En_8_Fig1_HTML.jpg&quot; title=&quot;Resursion&quot; width=&quot;328&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;img credit:Google Images&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{int num=0 res=0;&lt;br /&gt;printf(&quot;Enter the number&quot;);&lt;br /&gt;scanf(&quot;%d&quot;.&amp;amp;num);&lt;br /&gt;res=fact_N(num);&lt;br /&gt;printf(&quot;\n Factorial of %d %d&quot;,num,res);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;fact_N(intx)&lt;br /&gt;{int f=0;&lt;br /&gt;if(x==1)&lt;br /&gt;return1;&lt;br /&gt;else&lt;br /&gt;f=x*fact_N(x-1);&lt;br /&gt;returnf;&lt;br /&gt;}&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/1165138339841914644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/09/recursion-in-function.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1165138339841914644'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1165138339841914644'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/09/recursion-in-function.html' title='Recursion In Function-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixmXqMhJpho84BU3NRkUY26ohyLWRh2CC-QV98L_CrZSBRHC4oywsAGXYWObr6dmiKWFJta3IPsFveANIxoWZSdwzRBu236P8ut6QZtG4vZlS26v5umXBQnaZG-rA8BJf7LexJ8Gf-5eY/s72-w328-h290-c/465726_1_En_8_Fig1_HTML.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.06160576382115579 44.29102739999999 56.682073436178847 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-333050573198906821</id><published>2020-09-01T08:03:00.002+05:30</published><updated>2023-07-21T08:58:57.409+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Difference Between Call By Value And Call By Reference</title><content type='html'>&lt;p&gt;&amp;nbsp;Call By Value And Call By Reference:-&lt;/p&gt;&lt;p&gt;&lt;b&gt;1-&lt;/b&gt; &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;&lt;u&gt;Call By Value&lt;/u&gt;-:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;&amp;nbsp;In call by value each of the actual arguement in the calling function is copied to the formal arguement.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;The change made in the formal arguement have no effect on the values of actual arguement in calling function.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;2-&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: #2b00fe; font-weight: bold;&quot;&gt;&lt;u&gt;Call By Reference&lt;/u&gt;-:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;&amp;nbsp;In call by reference&amp;nbsp;the address of actual arguement in the calling function is copied to the formal arguement.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;The change made in the formal arguement, made change on the values of actual arguement in calling function.&lt;/span&gt;&lt;/li&gt;&lt;/ul&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;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://techprogramiz.blogspot.com/&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;168&quot; data-original-width=&quot;601&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCB9M8bvdI1gndt0FLsdhoDXSURGdYLi9flj8q1wXl1jbHSAiy4jPKxaRgOzr2sDtzQu3dl9el_GOBGmTfHwTpLRy1yidTKCxvtJNeOW20m_0f98-fyLA4ZqHQ04I8jWyjvu08GsF-Yao/w481-h134/051719_0550_Differenceb1.png&quot; width=&quot;481&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;img credit: google image&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;{int x=0,y=0,res=0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;printf(&quot;Enter the value of x and y:-&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;scanf(&quot;%d %d &quot;,&amp;amp;x,&amp;amp;y);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;printf(&quot;\n x=%d,y=%d&quot;x,y);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;res= swap_value(intx,inty)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;printf(&quot;\n Now x=%d y=%d&quot;x,y);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;getch();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;int swap_value(intx,inty)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;{int t=0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;printf(&quot;\n here x=%d y=%d&quot;,x,y);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;t=x;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;x=y;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;y=t;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;printf(&quot;\n now x=%d t=%d y=%d&quot;,x,t,y);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #800180;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Enter the value of x and y:-10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;20&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;x=10 y=20&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;here x=10 y=20&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;now x=20 t=10 y=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;now x=10 y=20&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/333050573198906821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/09/difference-between-call-by-value-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/333050573198906821'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/333050573198906821'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/09/difference-between-call-by-value-and.html' title='Difference Between Call By Value And Call By Reference'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCB9M8bvdI1gndt0FLsdhoDXSURGdYLi9flj8q1wXl1jbHSAiy4jPKxaRgOzr2sDtzQu3dl9el_GOBGmTfHwTpLRy1yidTKCxvtJNeOW20m_0f98-fyLA4ZqHQ04I8jWyjvu08GsF-Yao/s72-w481-h134-c/051719_0550_Differenceb1.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.06160576382115579 44.29102739999999 56.682073436178847 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-3548071365134788552</id><published>2020-08-26T09:47:00.001+05:30</published><updated>2023-07-21T09:04:03.896+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Nesting Of Function</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;C Permit Nesting Of Function Freely,In Nesting Of Function One Function Can Call Another Function, Which In Term Can Call Another Function.There Is No Limit On How Deeply Function Can be Nested.&lt;br /&gt;The Order In Which Function Are Define In A Program And Order In Which They Get Called Need Not Necessary Be Same.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&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;&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/AVvXsEihGd7NG01iWKrLbPgsf2KKXIkRUiejMFkhtdlIL72ebYx1R40vvav6Q596XI0i_W7NGZaTRkChakLiH79XV95UrnGi3C5s34ZKTNPe6V_jbHjYw2GexfLTMt_f-yphImeSEDkqAIWQAC0/s960/slide_43.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Nesting Of Function&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;960&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihGd7NG01iWKrLbPgsf2KKXIkRUiejMFkhtdlIL72ebYx1R40vvav6Q596XI0i_W7NGZaTRkChakLiH79XV95UrnGi3C5s34ZKTNPe6V_jbHjYw2GexfLTMt_f-yphImeSEDkqAIWQAC0/w512-h384/slide_43.jpg&quot; title=&quot;Tech Programiz&quot; width=&quot;512&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;Img Credit: Google Images&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;u&gt;&lt;br /&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;main()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;{printf(&quot;\n Hello,This Is Main&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;fun1();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;printf(&quot;\n Hello,We Are Back In Main&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;fun1();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;{printf(&quot;\n Hello,This Is fun1&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;fun2();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;printf(&quot;\n Hello,&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;We Are Back In&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;fun1&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;fun2();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;{printf(&quot;\n Hello,This Is fun2&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div&gt;&amp;lt;?php&lt;/div&gt;&lt;div&gt;// Check if the form is submitted&lt;/div&gt;&lt;div&gt;if ($_SERVER[&quot;REQUEST_METHOD&quot;] == &quot;POST&quot;) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; $errors = array();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Validate First Name (must be at least 3 characters long)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if (isset($_POST[&#39;first_name&#39;])) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $first_name = $_POST[&#39;first_name&#39;];&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (strlen($first_name) &amp;lt; 3) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $errors[&#39;first_name&#39;] = &quot;First name must be at least 3 characters long.&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Validate Email&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if (isset($_POST[&#39;email&#39;])) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $email = $_POST[&#39;email&#39;];&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $errors[&#39;email&#39;] = &quot;Invalid email format.&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Validate Password (must be at least 6 characters long)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if (isset($_POST[&#39;password&#39;])) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $password = $_POST[&#39;password&#39;];&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (strlen($password) &amp;lt; 6) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $errors[&#39;password&#39;] = &quot;Password must be at least 6 characters long.&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Validate Confirm Password (must match the Password)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if (isset($_POST[&#39;confirm_password&#39;])) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $confirm_password = $_POST[&#39;confirm_password&#39;];&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($password !== $confirm_password) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $errors[&#39;confirm_password&#39;] = &quot;Passwords do not match.&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // If there are no validation errors, you can process the data further&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if (empty($errors)) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Process the form data, save to the database, etc.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // You can access the validated values using the $first_name, $email, $password, and $confirm_password variables here.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Example: $first_name, $email, $password, $confirm_password&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/3548071365134788552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/nesting-of-function.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3548071365134788552'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3548071365134788552'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/nesting-of-function.html' title='Nesting Of Function'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihGd7NG01iWKrLbPgsf2KKXIkRUiejMFkhtdlIL72ebYx1R40vvav6Q596XI0i_W7NGZaTRkChakLiH79XV95UrnGi3C5s34ZKTNPe6V_jbHjYw2GexfLTMt_f-yphImeSEDkqAIWQAC0/s72-w512-h384-c/slide_43.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.06160576382115579 44.29102739999999 56.682073436178847 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-260780571853285181</id><published>2020-08-24T08:39:00.003+05:30</published><updated>2020-08-24T08:39:46.636+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Local Variable And Global Variable</title><content type='html'>&lt;p&gt;&amp;nbsp;Local Variable And Global Variable&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The variable declared within the body of the function are called&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; local variable&lt;/span&gt;&lt;/b&gt;,such variable can only be used within the body of function,within which they are created.&lt;/li&gt;&lt;li&gt;They are created,when the function is called and destroy automatically when the function exit,We may also use the keyword &lt;b&gt;&quot;auto&quot;&lt;/b&gt; to declare automatic variable explicitly.&lt;/li&gt;&lt;li&gt;One important feature of automatic variable that,there value cannot be change in other functions of same program.This assure that we may declare and use the same variable name in different function in the same program without causing any confusing to the compiler.&lt;/li&gt;&lt;li&gt;The variable declared outside of all the function usually before the main() function,are called &lt;b style=&quot;color: red;&quot;&gt;global variable&lt;/b&gt;.Such variable can be used any where in the entire program.&lt;/li&gt;&lt;li&gt;Local variable have higher precedence then global variable,If we have two variable of same name,one is local and another is global ,then local variable have higher precedence then the global variable.&lt;/li&gt;&lt;/ul&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;&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/AVvXsEjQNlMeskm6DKCW95K5BTUXk5j93bGTklXRb6r64u2aN2EdK00aDwXHcIaYkDvNFGYzIaEbEF4P5KZRlckWDqvMiFkWcJf6nfurejDIGe34t87pej2oE2IrSNVKcRp9v3om1RXN_-fNrXY/s300/keyword-and-identifier-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;techprogramiz.blogspot.com&quot; border=&quot;0&quot; data-original-height=&quot;159&quot; data-original-width=&quot;300&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQNlMeskm6DKCW95K5BTUXk5j93bGTklXRb6r64u2aN2EdK00aDwXHcIaYkDvNFGYzIaEbEF4P5KZRlckWDqvMiFkWcJf6nfurejDIGe34t87pej2oE2IrSNVKcRp9v3om1RXN_-fNrXY/w400-h212/keyword-and-identifier-1.jpg&quot; title=&quot;Local And Global Variable ...Tech Programiz&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;img credit: Google images&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Program Of Local Variable&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;-&lt;span style=&quot;color: #2b00fe;&quot;&gt;:&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{ int x=5;&lt;br /&gt;printf(&quot;x=%d&quot;,x);&lt;br /&gt;fun1();&lt;br /&gt;printf(&quot;\n Now x=%d&quot;,x);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;fun1()&lt;br /&gt;{int x=20;&lt;br /&gt;x=x+10;&lt;br /&gt;printf(&quot;\n x=%d&quot;,x);&lt;br /&gt;}&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;x=5&lt;br /&gt;x=30&lt;br /&gt;x=5&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Program Of Local Variable&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;-&lt;span style=&quot;color: #2b00fe;&quot;&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;int x=50;&lt;br /&gt;main()&lt;br /&gt;{ auto int x=5;&lt;br /&gt;printf(&quot;x=%d&quot;,x);&lt;br /&gt;fun1();&lt;br /&gt;printf(&quot;\n Now x=%d&quot;,x);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;fun1()&lt;br /&gt;{&lt;br /&gt;printf(&quot;\n x=%d&quot;,x);&lt;br /&gt;}&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;x=5&lt;br /&gt;x=50&lt;br /&gt;x=5&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/260780571853285181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/local-variable-and-global-variable.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/260780571853285181'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/260780571853285181'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/local-variable-and-global-variable.html' title='Local Variable And Global Variable'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQNlMeskm6DKCW95K5BTUXk5j93bGTklXRb6r64u2aN2EdK00aDwXHcIaYkDvNFGYzIaEbEF4P5KZRlckWDqvMiFkWcJf6nfurejDIGe34t87pej2oE2IrSNVKcRp9v3om1RXN_-fNrXY/s72-w400-h212-c/keyword-and-identifier-1.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>-1.5012441169508897 44.29102739999999 58.244923316950889 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-3814790400057222819</id><published>2020-08-21T07:34:00.004+05:30</published><updated>2020-08-21T07:40:12.441+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'>Actual Argument And Formal Argument-:</title><content type='html'>&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Actual argument/Actual Parameter&lt;/span&gt;&lt;/b&gt; are those argument whose value are transferred to the function at the time of its calling and actual argument may be constant,variable or an expression.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Formal Argument&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;/Formal Parameter&lt;/span&gt;&lt;/b&gt; are those argument which receives the value of actual argument.&lt;/li&gt;&lt;li&gt;The data type,order,counting of actual and formal argument should match existingly.&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: center;&quot;&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;&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/AVvXsEiWMaXgIusVQoMfBVfA68pXGa6F91BWxbgtbPDvnNDLgYGBJ3V1c2cYUFUBs1JlhCkX7PBY3v3AAIfcb8K4wvJ9-A_Iiuw86fGga02bTXfZQW14ntV6VG9Z1QYqGtRn63DByWOo5nQN6mg/s248/download+%25282%2529.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;techprogramiz&quot; border=&quot;0&quot; data-original-height=&quot;170&quot; data-original-width=&quot;248&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWMaXgIusVQoMfBVfA68pXGa6F91BWxbgtbPDvnNDLgYGBJ3V1c2cYUFUBs1JlhCkX7PBY3v3AAIfcb8K4wvJ9-A_Iiuw86fGga02bTXfZQW14ntV6VG9Z1QYqGtRn63DByWOo5nQN6mg/w310-h213/download+%25282%2529.png&quot; title=&quot;actual and formal arguement&quot; width=&quot;310&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;img credit: Google images&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: courier;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: courier;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;div&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div&gt;int sum_value(int,int)&lt;/div&gt;&lt;div&gt;main()&lt;/div&gt;&lt;div&gt;{int a=0,b=0,s=0;&lt;/div&gt;&lt;div&gt;printf(&quot;Enter The Value Of a And b \n &quot;);&lt;/div&gt;&lt;div&gt;scanf(&quot;%d %d&quot;,&amp;amp;a,&amp;amp;b);&lt;/div&gt;&lt;div&gt;s=sum_value(a,b);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt; /* Actual Argument */&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;printf(&quot;%d sum=%d&quot;,s);&lt;/div&gt;&lt;div&gt;getch();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;int sum_value(int a,int b)&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt; /* Formal Argument *&lt;/span&gt;&lt;/b&gt;/&lt;/div&gt;&lt;div&gt;{s=0;&lt;/div&gt;&lt;div&gt;&amp;nbsp; s=a+b;&lt;/div&gt;&lt;div&gt;&amp;nbsp; return s;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: courier;&quot;&gt;&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Enter The Value Of a And b 10&lt;/div&gt;&lt;div&gt;5&lt;/div&gt;&lt;div&gt;sum=15&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/3814790400057222819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/actual-argument-and-formal-argument.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3814790400057222819'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3814790400057222819'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/08/actual-argument-and-formal-argument.html' title='Actual Argument And Formal Argument-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWMaXgIusVQoMfBVfA68pXGa6F91BWxbgtbPDvnNDLgYGBJ3V1c2cYUFUBs1JlhCkX7PBY3v3AAIfcb8K4wvJ9-A_Iiuw86fGga02bTXfZQW14ntV6VG9Z1QYqGtRn63DByWOo5nQN6mg/s72-w310-h213-c/download+%25282%2529.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.06160576382115579 44.29102739999999 56.682073436178847 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-1556766488550588203</id><published>2020-06-20T17:12:00.002+05:30</published><updated>2023-07-23T10:16:14.810+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Function"/><title type='text'> Introduction To Functions:-</title><content type='html'>A Function is a separate module,sub-program procedure which is usually written after the main function and is capable of performing a small complete independent job.&lt;div style=&quot;text-align: left;&quot;&gt;Function serve two purposes-:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;They allow a programmer to say ,&quot; This piece of code does a specific job which stand by itself and should not be mixed up with anything else.&lt;/li&gt;&lt;li&gt;They make a block of code reuse-able , since a function can be reused in different context ,without repeating parts of the program text.&lt;/li&gt;&lt;/ul&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/AVvXsEioAIet8XA3m9-aOL2BBwL1zncysDYkEEPN7awf-KYXlzuLBshizB2euZ_gWdPtDQ3M2Hk_TDnda_Q5IzjfdqxL2ETR0USAGLA_umTWLwc3uoXnA4BlcwhxkRFvNRqZehZwnaIvwl5kNrU/s303/download+%25282%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;166&quot; data-original-width=&quot;303&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioAIet8XA3m9-aOL2BBwL1zncysDYkEEPN7awf-KYXlzuLBshizB2euZ_gWdPtDQ3M2Hk_TDnda_Q5IzjfdqxL2ETR0USAGLA_umTWLwc3uoXnA4BlcwhxkRFvNRqZehZwnaIvwl5kNrU/w303-h166/download+%25282%2529.png&quot; width=&quot;303&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;In C,there are two types of function-:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font color=&quot;#3367d6&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;u&gt;Pre-defined/ Library Function&lt;/u&gt;-: &lt;/font&gt;They are the parts of the C Language,means they are present in any of the various headers,that can be included in the program.&lt;/li&gt;&lt;/ul&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Examples&lt;/u&gt;&lt;b&gt;-:&lt;/b&gt;&lt;/font&gt;&lt;b style=&quot;color: #f4a900;&quot;&gt; &lt;/b&gt;The function sqrt() and pow() are present in &amp;lt;math.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&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; &amp;nbsp; The function getch() and clrscr() are present in &amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font color=&quot;#3367d6&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;u&gt;User-define Function&lt;/u&gt;-: &lt;/font&gt;&lt;font&gt;The function which are created by the user to accomplish a particular task is known as user-define function.&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;Some Important things while declaring a&lt;font color=&quot;#b51200&quot;&gt; &lt;b&gt;user-defined&lt;/b&gt;&lt;/font&gt;&lt;b&gt; &lt;/b&gt;function-:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;While using a user-define function in a program it is must to declare its&lt;font color=&quot;#7b1fa2&quot;&gt; &lt;b&gt;prototype&lt;/b&gt;&lt;/font&gt;&lt;b&gt;.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/font&gt; return type function name(data type - - -);&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#0b8043&quot;&gt;Where,&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font color=&quot;#3367d6&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;u&gt;return type&lt;/u&gt;-: &lt;/font&gt;&lt;font&gt;Any data type can be written here,This data type represent the type of value ,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returning by the function .If a function does not return any value ,&quot;void&quot; should be written here.&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font&gt;&lt;b&gt;&lt;font color=&quot;#3367d6&quot;&gt;&lt;u&gt;function name&lt;/u&gt;-:&lt;/font&gt;&amp;nbsp;&lt;/b&gt;A name given to function to identify it ,any user define word can be written here (identifier).&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;b style=&quot;color: #3367d6;&quot;&gt;&lt;u&gt;data type&lt;/u&gt;-: &lt;/b&gt;These data type represent the type of the variables value send to the function ,while calling it.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;color: #f57c00;&quot;&gt;&lt;u&gt;Examples&lt;/u&gt;-: &lt;/b&gt;int add_value(int,float);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;void null();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swap_value(int,int);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The Function prototype is required to inform the compiler regarding the user - define function ,in-advance .So that the compiler could may the necessary arrangement into the memory for its execution.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font color=&quot;#b51200&quot;&gt;&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;main()&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ int a=0,b=0,s=0;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;printf(&quot;Enter the value of a and b&quot;);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;scanf(&quot;%d %d &quot;,&amp;amp;a,&amp;amp;b);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;s=sum_value(a,b);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;printf(&quot;\n sum= %d&quot;,s);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; getch();&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;int sum_value(int a, int b)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;{ int s=0;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;s=a+b;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;return s;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font color=&quot;#b51200&quot;&gt;&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;-:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Enter the value of a and b 10&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;sum=15&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font color=&quot;#9c27b0&quot;&gt;&lt;b&gt;&lt;u&gt;Points To Remember&lt;/u&gt;-:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A function may be called or invoked ,either from main or other parts of program.&lt;/li&gt;&lt;li&gt;A function is invoked / called by writing its name along with the list of actual arguement enclosed within the pair of parenthesis ().&lt;/li&gt;&lt;li&gt;A function whenever invoked usually return , a single result to the invoking program ,a function may or may not return the result ,to the calling function or it may return more than one result.&lt;/li&gt;&lt;li&gt;A function cannot be defined inside the body of another function but can be called.&lt;/li&gt;&lt;li&gt;Any C program contains at least one function ,though there is no limit of the no. of function that might be present in a C program ,if a program have only one function then it must be main().&lt;/li&gt;&lt;li&gt;A function may or may not return value to any calling function ,if it does it is done through &quot;return statement&quot; , The return statement should be the last executable statement of any function.&lt;/li&gt;&lt;li&gt;In a function ,two return statement should never occur sucessively ,a function may have more than one return statement ,this situation arises when the value return is based on certain conditions.&lt;/li&gt;&lt;/ul&gt;&amp;nbsp; search&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Search Page&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;Search Data&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form method=&quot;get&quot; action=&quot;search_results.php&quot;&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;search_query&quot; placeholder=&quot;Enter your search query&quot;&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Search&amp;lt;/button&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;?php&lt;/div&gt;&lt;div&gt;// Establish database connection (Replace the placeholders with your database credentials)&lt;/div&gt;&lt;div&gt;$servername = &quot;your_servername&quot;;&lt;/div&gt;&lt;div&gt;$username = &quot;your_username&quot;;&lt;/div&gt;&lt;div&gt;$password = &quot;your_password&quot;;&lt;/div&gt;&lt;div&gt;$dbname = &quot;your_database_name&quot;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$conn = new mysqli($servername, $username, $password, $dbname);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;// Check connection&lt;/div&gt;&lt;div&gt;if ($conn-&amp;gt;connect_error) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;// Handle search query&lt;/div&gt;&lt;div&gt;if (isset($_GET[&#39;search_query&#39;])) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; $search_query = $_GET[&#39;search_query&#39;];&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Construct SQL query with a WHERE clause for searching&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; $sql = &quot;SELECT * FROM your_table_name WHERE column_name LIKE &#39;%$search_query%&#39;&quot;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Execute the query&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; $result = $conn-&amp;gt;query($sql);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; // Display the search results&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;h2&amp;gt;Search Results:&amp;lt;/h2&amp;gt;&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; if ($result-&amp;gt;num_rows &amp;gt; 0) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ($row = $result-&amp;gt;fetch_assoc()) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Display relevant data from the fetched row&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Data: &quot; . $row[&#39;column_name&#39;] . &quot;&amp;lt;br&amp;gt;&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;p&amp;gt;No results found.&amp;lt;/p&amp;gt;&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$conn-&amp;gt;close();&lt;/div&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/1556766488550588203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/06/introduction-to-functions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1556766488550588203'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1556766488550588203'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/06/introduction-to-functions.html' title=' Introduction To Functions:-'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioAIet8XA3m9-aOL2BBwL1zncysDYkEEPN7awf-KYXlzuLBshizB2euZ_gWdPtDQ3M2Hk_TDnda_Q5IzjfdqxL2ETR0USAGLA_umTWLwc3uoXnA4BlcwhxkRFvNRqZehZwnaIvwl5kNrU/s72-w303-h166-c/download+%25282%2529.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.06160576382115579 44.29102739999999 56.682073436178847 114.60352739999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-6672796743121785601</id><published>2020-05-04T06:35:00.001+05:30</published><updated>2023-07-23T13:01:23.269+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Row Major Order And Column Major Order in Array-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
The Formula to calculate the address of an element in 2-d array using &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Row Major Order&lt;/span&gt;&lt;/b&gt; would be-:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;Arr( A[i][j])=BA+[i*n+j]*w&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;where,&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;BA-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Base Address&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;w-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;width [ data type of array]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;i-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;subscript of array element&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;b&gt;j-:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;subscript of array element&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;n-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;number of column&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;b&gt;m-:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;number of rows&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Q- Find address of element in array having location a[2][3] with base address 100 and it is an integer type array,and the size of array is a[3][4]?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;we know that,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Arr( A[i][j])=BA+[i*n+j]*w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; here,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+[2*4+3]*2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+[8+3]*2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+22&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=122.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
The Formula to calculate the address of an element in 2-d array using&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Column Major Order&lt;/span&gt;&lt;/b&gt;&amp;nbsp;would be-:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;Arr( A[i][j])=BA+[j*n+i]*w&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;where,&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;BA-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Base Address&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;w-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;width [ data type of array]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;i-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;subscript of array element&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;b&gt;j-:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;subscript of array element&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;n-:&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;number of column&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;b&gt;m-:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;number of rows&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;Q- Find address of element in array having location a[2][3] with base address 100 and it is an integer type array,and the size of array is a[3][4]?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;we know that,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;Arr( A[i][j])=BA+[j*n+i]*w&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; here,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+[3*3+3]*2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+[9+2]*2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=100+22&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[2][3]=122.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/LwvZQ3zWkPo/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/LwvZQ3zWkPo?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/t2WxkgIZKPs/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/t2WxkgIZKPs?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: left;&quot;&gt;ads&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;User Registration&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;User Registration&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form method=&quot;post&quot; action=&quot;register.php&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;firstname&quot;&amp;gt;First Name:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;firstname&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;lastname&quot;&amp;gt;Last Name:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;lastname&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;email&quot;&amp;gt;Email:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;email&quot; name=&quot;email&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;password&quot;&amp;gt;Password:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; name=&quot;password&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;confirm_password&quot;&amp;gt;Confirm Password:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; name=&quot;confirm_password&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;is_admin&quot;&amp;gt;Register as Admin:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; name=&quot;is_admin&quot; value=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Register&amp;lt;/button&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&amp;lt;?php&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;// Establish database connection (Replace the placeholders with your database credentials)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$servername = &quot;your_servername&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$username = &quot;your_username&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$password = &quot;your_password&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$dbname = &quot;your_database_name&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$conn = new mysqli($servername, $username, $password, $dbname);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;// Check connection&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;if ($conn-&amp;gt;connect_error) {&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;// Function to safely handle user inputs&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;function sanitize_input($input)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;{&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; return htmlspecialchars(trim($input));&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;// Handle registration form submission&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;if ($_SERVER[&quot;REQUEST_METHOD&quot;] === &quot;POST&quot;) {&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $firstname = sanitize_input($_POST[&quot;firstname&quot;]);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $lastname = sanitize_input($_POST[&quot;lastname&quot;]);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $email = sanitize_input($_POST[&quot;email&quot;]);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $password = $_POST[&quot;password&quot;];&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $confirm_password = $_POST[&quot;confirm_password&quot;];&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $is_admin = isset($_POST[&quot;is_admin&quot;]) &amp;amp;&amp;amp; $_POST[&quot;is_admin&quot;] === &quot;1&quot; ? 1 : 0;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; // Additional validation can be performed here (e.g., password match check, email format validation, etc.)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; // Hash the password before storing it in the database&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $hashed_password = password_hash($password, PASSWORD_DEFAULT);&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; // Prepare and execute the SQL query to insert the new user into the database&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; $sql = &quot;INSERT INTO users (firstname, lastname, email, password, is_admin)&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VALUES (&#39;$firstname&#39;, &#39;$lastname&#39;, &#39;$email&#39;, &#39;$hashed_password&#39;, $is_admin)&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; if ($conn-&amp;gt;query($sql) === TRUE) {&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Registration successful!&quot;;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Error: &quot; . $sql . &quot;&amp;lt;br&amp;gt;&quot; . $conn-&amp;gt;error;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$conn-&amp;gt;close();&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;?&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/IA6bE&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assetscdn1.paytm.com/images/catalog/view_item/314481/1573455541556.jpg?imwidth=758&amp;amp;impolicy=hq_80&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/6672796743121785601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/row-major-order-and-column-major-order.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6672796743121785601'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6672796743121785601'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/row-major-order-and-column-major-order.html' title='Row Major Order And Column Major Order in Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/LwvZQ3zWkPo/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-8228370942735748866</id><published>2020-05-04T05:49:00.003+05:30</published><updated>2023-07-23T13:11:34.961+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Searching In Array-:</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;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Searching means to find whether a particular value is present in the array or not.&lt;/li&gt;
&lt;li&gt;If the value is present in array then the search is said to be successful and the search process gives the location of that value in array,otherwise,if the value is not present in the array the search process displays the appropriate message and in this case search is said to be unsuccessful.&lt;/li&gt;
&lt;li&gt;There are two popular methods for searching the array elements-:&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1- &lt;b&gt;Linear Search&lt;/b&gt; &lt;b&gt;&lt;a href=&quot;https://www.programmingsimplified.com/c/source-code/c-program-linear-search&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2-&lt;b&gt; Binary Search&lt;/b&gt; &lt;b&gt;&lt;a href=&quot;https://www.programmingsimplified.com/c/source-code/c-program-Binary-search&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;marquee&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Videos&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; Below&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/C46QfTjVCNU/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/C46QfTjVCNU?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/V_T5NuccwRA/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/V_T5NuccwRA?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;b&gt;ads&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
 &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://inr.deals/PHxD8&quot; rel=&quot;nofollow&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://www.bigbasket.com/media/uploads/banner_images/All_PrecautionaryMeasures_DT_1_1130x400_25thApr.jpg&quot; width=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;User Login&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;User Login&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form method=&quot;post&quot; action=&quot;login_process.php&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;email&quot;&amp;gt;Email:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;email&quot; name=&quot;email&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;password&quot;&amp;gt;Password:&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; name=&quot;password&quot; required&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Login&amp;lt;/button&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;// Establish database connection (Replace the placeholders with your database credentials)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$servername = &quot;your_servername&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$username = &quot;your_username&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$password = &quot;your_password&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$dbname = &quot;your_database_name&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$conn = new mysqli($servername, $username, $password, $dbname);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;// Check connection&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;if ($conn-&amp;gt;connect_error) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;// Function to safely handle user inputs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;function sanitize_input($input)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; return htmlspecialchars(trim($input));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;// Handle login form submission&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;if ($_SERVER[&quot;REQUEST_METHOD&quot;] === &quot;POST&quot;) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; $email = sanitize_input($_POST[&quot;email&quot;]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; $password = $_POST[&quot;password&quot;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; // Retrieve the user record based on the provided email&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; $sql = &quot;SELECT id, password, is_admin FROM users WHERE email = &#39;$email&#39;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; $result = $conn-&amp;gt;query($sql);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; if ($result-&amp;gt;num_rows === 1) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $row = $result-&amp;gt;fetch_assoc();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $hashed_password = $row[&quot;password&quot;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $is_admin = $row[&quot;is_admin&quot;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Verify the provided password against the hashed password in the database&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (password_verify($password, $hashed_password)) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Login successful!&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Now you can set session variables or perform other actions based on the user&#39;s role (is_admin)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Invalid email or password.&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Invalid email or password.&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;$conn-&amp;gt;close();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/8228370942735748866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/searching-in-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8228370942735748866'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8228370942735748866'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/searching-in-array.html' title='Searching In Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/C46QfTjVCNU/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-6016858317652830293</id><published>2020-05-04T03:58:00.001+05:30</published><updated>2023-07-26T06:55:47.464+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Sorting Array Element-:</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&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Sorting means arranging element in some specific order.&lt;/li&gt;
&lt;li&gt;If the array element are integer or float type values then they are sorted to either in ascending order or descending order.&lt;/li&gt;
&lt;li&gt;But if the array element are of char type then they are sorted in alphabetical order or reverse order.&lt;/li&gt;
&lt;li&gt;The possible types of sorting to solve an array of integer type are as follow-:&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;1-&lt;/b&gt; &lt;b&gt;Selection Sorting &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/program-of-selection-sort.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2- Bubble Sorting&amp;nbsp; &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/program-of-bubble-sort_4.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3- Insertion Sorting&amp;nbsp; &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/program-of-insertion-sort.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;/div&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B01EV80ASI&amp;amp;asins=B01EV80ASI&amp;amp;linkId=5e3f3862e26594262bcc47a6434f0721&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B071JDSYL4&amp;amp;asins=B071JDSYL4&amp;amp;linkId=be1ffda6ca21b973270effcfb0d1e489&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/-5AeCUt8WiY/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/-5AeCUt8WiY?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;marquee&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&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;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;?php&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Start the session (if not already started)&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;session_start();&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Check if the user is logged in, if not redirect to the login page&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;if (!isset($_SESSION[&#39;username&#39;])) {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; header(&quot;Location: login.html&quot;);&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; exit();&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;}&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Replace the following with your actual database credentials&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;$servername = &quot;localhost&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;$username = &quot;your_username&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;$password = &quot;your_password&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;$dbname = &quot;your_database&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Establish a database connection&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;$conn = new mysqli($servername, $username, $password, $dbname);&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Check for a connection error&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;if ($conn-&amp;gt;connect_error) {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;}&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;// Check if the search form is submitted&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;if (isset($_POST[&#39;search_query&#39;])) {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Sanitize the input to prevent SQL injection&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; $search_query = mysqli_real_escape_string($conn, $_POST[&#39;search_query&#39;]);&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Get the username of the currently logged-in user&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; $username = $_SESSION[&#39;username&#39;];&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Prepare the SQL query to retrieve matching data for the current user&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; $sql = &quot;SELECT * FROM user_details WHERE username = &#39;$username&#39; AND column_name LIKE &#39;%$search_query%&#39;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Execute the query and store the result&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; $result = $conn-&amp;gt;query($sql);&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Check if there are any results&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; if ($result-&amp;gt;num_rows &amp;gt; 0) {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Display the search results in a table&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;table&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ($row = $result-&amp;gt;fetch_assoc()) {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;tr&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;td&amp;gt;&quot; . $row[&quot;column_name1&quot;] . &quot;&amp;lt;/td&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;td&amp;gt;&quot; . $row[&quot;column_name2&quot;] . &quot;&amp;lt;/td&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add more fields as needed&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;/tr&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;/table&amp;gt;&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;No results found.&quot;;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; }&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; // Close the database connection&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; $conn-&amp;gt;close();&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;}&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;?&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;html&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;head&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;User Details Search&amp;lt;/title&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;/head&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;body&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Welcome, &amp;lt;?php echo $_SESSION[&#39;username&#39;]; ?&amp;gt;&amp;lt;/h2&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form action=&quot;search.php&quot; method=&quot;POST&quot;&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;search&quot;&amp;gt;Search:&amp;lt;/label&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;search&quot; name=&quot;search_query&quot; placeholder=&quot;Enter search term...&quot; required&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Search&amp;lt;/button&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;/body&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;lt;/html&amp;gt;&lt;/marquee&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&amp;nbsp; &amp;nbsp;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/6016858317652830293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/sorting-array-element.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6016858317652830293'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6016858317652830293'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/sorting-array-element.html' title='Sorting Array Element-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/-5AeCUt8WiY/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada, Bareilly, Uttar Pradesh 243005, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-6766372021319857418</id><published>2020-05-04T03:56:00.000+05:30</published><updated>2020-05-04T03:56:37.303+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Program Of Insertion Sort-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp preprocessor&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;InsertionSort(&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[],&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;n)&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;j, p;&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;tmp;&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(p = 1; p &amp;lt; n; p++)&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;tmp = a[p];&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(j = p; j &amp;gt; 0 &amp;amp;&amp;amp; a[j-1] &amp;gt; tmp; j--)&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[j] = a[j-1];&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[j] = tmp;&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;main()&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;i, n, a[10];&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;Enter the number of elements :: &quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;scanf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,&amp;amp;n);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;Enter the elements :: &quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(i = 0; i &amp;lt; n; i++)&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;scanf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,&amp;amp;a[i]);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;InsertionSort(a,n);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number26 index25 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;The sorted elements are ::&amp;nbsp; &quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number27 index26 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(i = 0; i &amp;lt; n; i++)&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d&amp;nbsp; &quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,a[i]);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number29 index28 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;\n&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number30 index29 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;0;&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line number31 index30 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number31 index30 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Output-:&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;span style=&quot;background-color: #f2f2f2; font-size: 0.9rem; white-space: pre-wrap;&quot;&gt;Enter the number of elements :: 7&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;text&quot; style=&quot;background: rgb(242, 242, 242); border-radius: 0.1875rem; border: 1px solid rgb(221, 221, 221); box-sizing: inherit; font-size: 0.9rem; line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: break-word; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all;&quot;&gt;Enter the elements :: 10 30 80 20 60 40 50
The sorted elements are ::  10  20  30  40  50  60  80&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;line number31 index30 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: center; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;marquee&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/marquee&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/yCxV0kBpA6M/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/yCxV0kBpA6M?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
ads&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/9drGB&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://tpc.googlesyndication.com/simgad/5862163902336991960?sqp=4sqPyQQrQikqJwhfEAEdAAC0QiABKAEwCTgDQPCTCUgAUAFYAWBfcAJ4AcUBLbKdPg&amp;amp;rs=AOga4qmKUa8DYHeHB3ZtfQSWLnMvYSfG-g&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/6766372021319857418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-insertion-sort.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6766372021319857418'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6766372021319857418'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-insertion-sort.html' title='Program Of Insertion Sort-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/yCxV0kBpA6M/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-1230025927517907208</id><published>2020-05-04T03:42:00.004+05:30</published><updated>2020-05-04T03:56:36.889+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Program Of Bubble Sort -:</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 class=&quot;line number1 index0 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp preprocessor&quot; style=&quot;background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; color: grey; float: none; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace &amp;quot;important&amp;quot;; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; white-space: nowrap; width: auto;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;main()&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp color1 bold&quot; style=&quot;background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; color: grey; float: none; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace &amp;quot;important&amp;quot;; font-size: 1em; font-weight: 700; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; white-space: nowrap; width: auto;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[10],i,j,temp,n;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp comments&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 130, 0) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;//clear();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;\n Enter the max no.of Elements to Sort: \n&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;scanf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,&amp;amp;n);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;\n Enter the Elements : \n&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(i=0; i&amp;lt;n; i++)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;scanf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,&amp;amp;a[i]);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(i=0; i&amp;lt;n; i++)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(j=i+1; j&amp;lt;n; j++)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(a[i]&amp;gt;a[j])&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;temp=a[i];&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[i]=a[j];&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;a[j]=temp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&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;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp keyword bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(i=0; i&amp;lt;n; i++)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp functions bold&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(255, 20, 147) !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; font-weight: 700 !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;cpp string&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&quot;%d\t&quot;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;,a[i]);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number26 index25 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number27 index26 alt2&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp spaces&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;getch();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 16px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: center; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;-:&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre class=&quot;text&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgb(221, 221, 221); box-sizing: inherit; font-size: 0.9rem; line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: break-word; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Enter the max no.of Elements to Sort:
5&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;text&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgb(221, 221, 221); box-sizing: inherit; font-size: 0.9rem; line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: break-word; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Enter the Elements :
45
21
89
78
99&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;text&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgb(221, 221, 221); box-sizing: inherit; font-size: 0.9rem; line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: break-word; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;code class=&quot;cpp plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;21      45      78      89      99&lt;/span&gt;&lt;span style=&quot;background-color: #f2f2f2;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: center; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;marquee&gt;
&lt;b style=&quot;background-color: initial; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&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;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/o4bAoo_gFBU/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/o4bAoo_gFBU?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot; style=&quot;background: 0px 0px rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: center; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;cpp plain&quot; style=&quot;background: 0px 0px !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap; width: auto !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;
ads&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/SClKw&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assets.ajio.com/medias/sys_master/images/images/hf6/h43/16336079749150/21042020-D-Unisex-Trends-B1-FinalClearance-Flat66.jpg&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/1230025927517907208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-bubble-sort_4.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1230025927517907208'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1230025927517907208'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-bubble-sort_4.html' title='Program Of Bubble Sort -:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/o4bAoo_gFBU/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-124646256648713896</id><published>2020-05-04T03:07:00.002+05:30</published><updated>2023-07-14T07:47:56.352+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Program Of Selection Sort-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;main()&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;a[100], n,
i, j, temp, swap;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;printf(&quot;Enter number of elements \n&quot;);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;scanf(&quot;%d&quot;, &amp;amp;n);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;printf(&quot;Enter %d Numbers \n&quot;, n);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;(i = 0; i
&amp;lt; n; i++)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;scanf(&quot;%d&quot;, &amp;amp;a[i]);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;for(i = 0; i &amp;lt; n - 1; i++)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;temp=i;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;for(j = i + 1; j &amp;lt; n; j++)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;if(a[temp] &amp;gt; a[j])&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;temp=j;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;if(temp != i)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;swap=a[i];&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;a[i]=a[temp];&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;a[temp=swap;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;printf(&quot;Sorted Array:\n&quot;);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;for(i = 0; i &amp;lt; n; i++)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;printf(&quot;%dn&quot;, a[i]);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 10pt;&quot;&gt;0;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;b style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;
&lt;b style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Output&lt;/span&gt;&lt;/u&gt;-:&lt;/span&gt;&lt;/b&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/AVvXsEjWTjymj9s7kWcSmeyUoW4dgYtTjKi7uvbdq_tLuDZ3M2as6toOr971ZHYFuD9J-cL_qSFCiFma1Iww6zNm1H8TRfLqjjokfdf5JI5-uDz4311Taif8d06d1yo0jJdr2ETGbpohgU3iuZM/s1600/nu.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;385&quot; data-original-width=&quot;314&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWTjymj9s7kWcSmeyUoW4dgYtTjKi7uvbdq_tLuDZ3M2as6toOr971ZHYFuD9J-cL_qSFCiFma1Iww6zNm1H8TRfLqjjokfdf5JI5-uDz4311Taif8d06d1yo0jJdr2ETGbpohgU3iuZM/s400/nu.png&quot; width=&quot;325&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/9oWd4VJOwr0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/9oWd4VJOwr0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
ads&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/qzb14&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assets.gadgets360cdn.com/shop/assets/products/best-toasters.jpeg?output-quality=80&amp;amp;output-format=webp&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/124646256648713896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-selection-sort.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/124646256648713896'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/124646256648713896'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/program-of-selection-sort.html' title='Program Of Selection Sort-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWTjymj9s7kWcSmeyUoW4dgYtTjKi7uvbdq_tLuDZ3M2as6toOr971ZHYFuD9J-cL_qSFCiFma1Iww6zNm1H8TRfLqjjokfdf5JI5-uDz4311Taif8d06d1yo0jJdr2ETGbpohgU3iuZM/s72-c/nu.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-3876267740730339670</id><published>2020-05-04T02:10:00.000+05:30</published><updated>2020-05-04T02:10:31.365+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Base Address And Formula Of Calculating Address Of Array Element-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
The first address of array is known as base address.The array name is a symbolic reference to the address to the first byte of an array i.e.,when we use the array name we are actually referring the first byte of array.&lt;br /&gt;
&lt;b&gt;for example-:&lt;/b&gt; If there is array whose name is &lt;span style=&quot;color: blue;&quot;&gt;num&lt;/span&gt;,then if we write statement&lt;span style=&quot;color: red;&quot;&gt; printf(&quot;%d&quot;,num);&lt;/span&gt; - then it will give output as the base address of that array.&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/AVvXsEgvgWhxAHRQWJcPf0kvtZeBak2p4OekLd8OwryVGqVKd1yoFciqFnCXV8vkQaMgSBAARujPzV57y1zLnsIvVe3v4FpmTBdG1UpP3O0ojcOdkOedYO1CPVH6K4gVzU_20s2O3mD40UmpQ0Q/s1600/ds-1d-array.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;270&quot; data-original-width=&quot;431&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvgWhxAHRQWJcPf0kvtZeBak2p4OekLd8OwryVGqVKd1yoFciqFnCXV8vkQaMgSBAARujPzV57y1zLnsIvVe3v4FpmTBdG1UpP3O0ojcOdkOedYO1CPVH6K4gVzU_20s2O3mD40UmpQ0Q/s640/ds-1d-array.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: large;&quot;&gt;&lt;u&gt;Calculating The Address Of Array Element&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;As we know that the array name is a symbolic reference to the address of the first byte of an array.So,when we use the array name we are actually referring to the first byte of the array.&lt;/li&gt;
&lt;li&gt;Now here the question arises how the compiler knows where an individual element of the array is located in the memory.&lt;/li&gt;
&lt;li&gt;The subscript or the index represents the offset from the beginning of the array to the element being reffered with just array name and index,compiler can calculate the address of any element in the array,the formula for doing this calculation is as follow-:&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;color: magenta; font-size: large;&quot;&gt;[K]&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;BA&lt;/span&gt;&lt;span style=&quot;color: magenta; font-size: large;&quot;&gt;[A]&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: purple; font-size: large;&quot;&gt;W&lt;/span&gt;&lt;span style=&quot;color: magenta; font-size: large;&quot;&gt;[K-lower bound]&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;Where;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;A-: is the array.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;K-: is the index of element for which we have to calculate the address.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;BA-:base address&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;W-: is the word size of one element in memory&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;lower bound-: is the index of the first element in the array.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;Q- Consider the following array,calculate the address of mark[4],if the base address is 1000,&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int mark[ ]={99,67,78,56,88,90,34,85};&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt; &lt;/span&gt;we know that,&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;text-align: center;&quot;&gt;A[K]=BA[A]+W[K-lower bound]&lt;span style=&quot;color: magenta; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;here,&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mark[4]=1000+2(4-0)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mark[4]=1000+8&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mark[4]=1008.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;marquee&gt;
&lt;b style=&quot;text-align: center;&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; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/ygfq7zz24wA/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/ygfq7zz24wA?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
ads&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/CPLjn&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://tpc.googlesyndication.com/simgad/2893574436644569393&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/3876267740730339670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/base-address-and-formula-of-calculating.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3876267740730339670'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3876267740730339670'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/base-address-and-formula-of-calculating.html' title='Base Address And Formula Of Calculating Address Of Array Element-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvgWhxAHRQWJcPf0kvtZeBak2p4OekLd8OwryVGqVKd1yoFciqFnCXV8vkQaMgSBAARujPzV57y1zLnsIvVe3v4FpmTBdG1UpP3O0ojcOdkOedYO1CPVH6K4gVzU_20s2O3mD40UmpQ0Q/s72-c/ds-1d-array.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-5653139300088381295</id><published>2020-05-04T01:10:00.004+05:30</published><updated>2020-05-04T01:10:53.468+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Bound Checking in Array-:</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;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;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;C does not perform bound checking automatically.&lt;/li&gt;
&lt;li&gt;The condition of bound checking arises,when the number of values initializes,are more than the of array.&lt;/li&gt;
&lt;li&gt;When the number of values are more than the size of array,then the extra values,will occupy next adjacent location and may overwrite the existing data.This may result loss of data.&lt;/li&gt;
&lt;li&gt;And,also we are not able to get back those extra values.&lt;/li&gt;
&lt;/ol&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; &amp;nbsp; ads&amp;nbsp;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B085WYG7HN&amp;amp;asins=B085WYG7HN&amp;amp;linkId=efda47c8b4cb320187229439e87a2faa&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;  &lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07G7RXXX9&amp;amp;asins=B07G7RXXX9&amp;amp;linkId=f4fd619427ee102de9f7254122b158f0&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;marquee&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;Watch The&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Video&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/F-RtwJKNtV0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/F-RtwJKNtV0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/5653139300088381295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/bound-checking-in-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5653139300088381295'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5653139300088381295'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/bound-checking-in-array.html' title='Bound Checking in Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/F-RtwJKNtV0/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-6367541871367847013</id><published>2020-05-03T23:12:00.004+05:30</published><updated>2023-07-14T07:48:33.320+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Two-Dimensional Array-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;Arial, Helvetica, sans-serif&quot; style=&quot;color: #6aa84f; font-size: large;&quot;&gt;&lt;u style=&quot;text-decoration-line: underline;&quot;&gt;Declaration of Two-Dimensional Array&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Before using an array in program,it is must to declare it,&lt;span style=&quot;background-color: white; letter-spacing: 0.8px; text-align: justify;&quot;&gt;An array, which has two subscript &lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.8px; text-align: justify;&quot;&gt;is known as two dimensional array.&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.8px; text-align: justify;&quot;&gt;It has two subscripts, first one represents row and second one represents column. Subscripts are always starts with 0&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.8px; text-align: justify;&quot;&gt;,&lt;/span&gt;The syntax to declare 2-d array is as follow-:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;br /&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;data type&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;array name&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;[size1][size2];&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;[4][5];&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVCCoio5uIvsB1V-_C2-_WGRBI-f06L9MfPf0tj6h9WShsnuQqYrZVi3nvFqrOTYdPc4sdM4XxqmS84UfDLowFYvhmu9A9JVrwY-nvPXlViCyJ4vPfZshvnVgmMh1nQy45h2deOOodf2E/s1600/2d-array.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;907&quot; data-original-width=&quot;1416&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVCCoio5uIvsB1V-_C2-_WGRBI-f06L9MfPf0tj6h9WShsnuQqYrZVi3nvFqrOTYdPc4sdM4XxqmS84UfDLowFYvhmu9A9JVrwY-nvPXlViCyJ4vPfZshvnVgmMh1nQy45h2deOOodf2E/s640/2d-array.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Each memory location will occupy 2 byte,because its data type is integer.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: red;&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; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07R5PKDLQ&amp;amp;asins=B07R5PKDLQ&amp;amp;linkId=f9c2ba3b5ab223cafe3a7f2b2dcf69c7&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;https://ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B0756WN4WN&amp;amp;asins=B0756WN4WN&amp;amp;linkId=90de9d9702c732175dad028601d7ca85&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; text-align: center; width: 120px;&quot;&gt;&lt;/iframe&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;https://ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07191J5GB&amp;amp;asins=B07191J5GB&amp;amp;linkId=00acd379d514d51162703f6c546f8e4c&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; text-align: center; width: 120px;&quot;&gt;&lt;/iframe&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Storage of Values in 2-d Array&lt;/u&gt;-:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;In an array values can be stored by below two methods-:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Initialization method.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Input method.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: large;&quot;&gt;&lt;u&gt;Initialization Method&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In this method values to be stored in an array are provided at the time,when the array is declared.If the values to be stored in array are known to programmer than this method is best to initialize array.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;data type&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;array name&lt;/span&gt;[size 1][size 2]=&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{value 1,value 2,value 3,------value n};&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;num[3][5]&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{5,12,17,9,3,13,4,8,14,1,9,6,3,7,21};&lt;/span&gt;&lt;/b&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/AVvXsEhnkjKsGehwKVu0PBg75UEoCMBsUJ3QyeDJ4QSnPSVy2orV2_U2zbuKMgXpvVaLoI7VfGZDxrHixpd7JiA3LyPlTmA44wsBpcOMOWugMw_fZ09sNiJKUqRqgj05lG0MkROCB5FlZCIzxIY/s1600/873c255.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;332&quot; data-original-width=&quot;360&quot; height=&quot;588&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnkjKsGehwKVu0PBg75UEoCMBsUJ3QyeDJ4QSnPSVy2orV2_U2zbuKMgXpvVaLoI7VfGZDxrHixpd7JiA3LyPlTmA44wsBpcOMOWugMw_fZ09sNiJKUqRqgj05lG0MkROCB5FlZCIzxIY/s640/873c255.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
While initializing an 2-darray it is optional to provide the number of rows.In such as case, the size of array is determine by the number of value initialized.&lt;br /&gt;
If the number of values initialized are less than the size of array then the remaining location are automatically filled with zero.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;u&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Input Method&lt;/u&gt;-:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;When the values of array are &lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;stored at run-time&lt;/b&gt;&lt;/span&gt;,then the input method is used in 2-d array.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/b&gt;-:&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;no. of rows;i++)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;{&lt;/b&gt;&lt;b&gt;for(j=0;j&amp;lt;no. of column;j++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;{printf(&quot;\n Enter array element &quot;&lt;/b&gt;&lt;b&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; scanf(&quot;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/03/format-specifier-and-escape-sequence.html&quot; target=&quot;_blank&quot;&gt;format specifier&lt;/a&gt;&quot;,&amp;amp;array name[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;} }&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;int num[10][5];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;10,i++)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&amp;nbsp;&lt;/b&gt;&lt;b&gt;for(j=0;j&amp;lt;5,j++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;{printf(&quot;\n Enter array element %d &quot;);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;num[i][j]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;}}&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: blue;&quot;&gt;&lt;u&gt;How to print value stored in 2-d Array&lt;/u&gt;?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The following syntax is used to print value stored in 1-d array-:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/b&gt;-:&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;no. of rows;i++)&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;{&lt;/b&gt;&lt;b&gt;for(j=0;j&amp;lt;no. of column;j++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; printf(&quot;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/03/format-specifier-and-escape-sequence.html&quot; target=&quot;_blank&quot;&gt;format specifier&lt;/a&gt;&quot;,&amp;amp;array name[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;}&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;int num[10][5];&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;for(i=0;i&amp;lt;10,i++)&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;{&amp;nbsp;&lt;/b&gt;&lt;b&gt;for(j=0;j&amp;lt;5,j++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; printf(&quot;%d&quot;,&amp;amp;num[i][j]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;Q- Write a program to print a initialized two dimensional array.&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;border-radius: 0px 4px 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: menlo, monaco, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 15px; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;pre style=&quot;border-radius: 0px 4px 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;
int main()
{
int matrix[3][3] = {{8,9,6}, {3.2.1}, {7, 8, 9}}, i, j;
for(i = 0; i &amp;lt; 3; i++)
{
for(j = 0; j &amp;lt; 3; j++)
{
printf(&quot;%2d &quot;, matrix[i] [j]);
}
printf(&quot;\n&quot;);
}
return 0;
}&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;&lt;b&gt;Output-:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 17px; letter-spacing: 0.8px; text-align: center;&quot;&gt;8 9 6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 17px; letter-spacing: 0.8px; text-align: center;&quot;&gt;3 2 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 17px; letter-spacing: 0.8px; text-align: center;&quot;&gt;7 8 9&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Definition&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; Of &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Array&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt; &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/array.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;About &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;One-Dimensional Array &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/one-dimensional-array.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Watch The&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: blue; font-size: x-large;&quot;&gt;Below&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: x-large;&quot;&gt;Videos&lt;/span&gt;&lt;/marquee&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/rrhkYfAm6oE/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/rrhkYfAm6oE?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;ads&lt;/b&gt;&lt;a href=&quot;https://inr.deals/Xv8WN&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://www.a2hosting.com/images/2015/logo.png&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;; text-align: center;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0px;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&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='https://techprogramiz.blogspot.com/feeds/6367541871367847013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/two-dimensional-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6367541871367847013'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/6367541871367847013'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/two-dimensional-array.html' title='Two-Dimensional Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVCCoio5uIvsB1V-_C2-_WGRBI-f06L9MfPf0tj6h9WShsnuQqYrZVi3nvFqrOTYdPc4sdM4XxqmS84UfDLowFYvhmu9A9JVrwY-nvPXlViCyJ4vPfZshvnVgmMh1nQy45h2deOOodf2E/s72-c/2d-array.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-5165596693821631906</id><published>2020-05-03T19:20:00.001+05:30</published><updated>2020-05-03T20:00:24.228+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>One-Dimensional Array-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;font-family: verdana, sans-serif; font-size: x-large;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;u style=&quot;text-decoration-line: underline;&quot;&gt;Declaration of 1-d Array&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Before using an array in program,it is must to declare it,The syntax to declare 1-d array is as follow-:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;data type&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;array name&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;size of array&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1-&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;int marks[5];&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQwcx69SwA8BBkYPkQ9flbq8YEaN6QvuYEU8os-PB_0kqOGrnARCGAwjnXzykBd_gKsb69cy7zSq24NiDPmjqHQiMB-AzZlbMk3mMt69zrODGiBGy6HF01MX-lPt_tRDQLQC-bpNgKyE/s1600/arrays-in-c-language.webp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;217&quot; data-original-width=&quot;400&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQwcx69SwA8BBkYPkQ9flbq8YEaN6QvuYEU8os-PB_0kqOGrnARCGAwjnXzykBd_gKsb69cy7zSq24NiDPmjqHQiMB-AzZlbMk3mMt69zrODGiBGy6HF01MX-lPt_tRDQLQC-bpNgKyE/s320/arrays-in-c-language.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold;&quot;&gt;
Each memory location will occupy 2 byte.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;2-&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;float temps[5];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYccrveKwbqRDQj8n7XAF2-P1cG0wuUlzIG08C5SBZBdzdzC8m-msJgvM2YijX949gFi-EJYY-i5g5oz8PddKfZvidi-aouro7QtbzFjsQsmp2jHliAVpdKsYb4-dRBP18bDLPtuW3Cgs/s1600/Another%252BExample%252BDeclare%252Ban%252Barray%252Bcalled%252Btemps%252Bwhich%252Bwill%252Bhold%252Bup%252Bto%252B5%252Bindividual%252Bfloat%252Bvalues.%252Bfloat%252Btemps%255B5%255D%253B%252B__%252Bdeclaration%252Ballocates%252Bmemory..jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;210&quot; data-original-width=&quot;792&quot; height=&quot;84&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYccrveKwbqRDQj8n7XAF2-P1cG0wuUlzIG08C5SBZBdzdzC8m-msJgvM2YijX949gFi-EJYY-i5g5oz8PddKfZvidi-aouro7QtbzFjsQsmp2jHliAVpdKsYb4-dRBP18bDLPtuW3Cgs/s320/Another%252BExample%252BDeclare%252Ban%252Barray%252Bcalled%252Btemps%252Bwhich%252Bwill%252Bhold%252Bup%252Bto%252B5%252Bindividual%252Bfloat%252Bvalues.%252Bfloat%252Btemps%255B5%255D%253B%252B__%252Bdeclaration%252Ballocates%252Bmemory..jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;Each memory location will occupy 4 byte.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3-&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;char name[5];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsGjKrgnd30rDEkQVr3Ih9MnpF_LI2qqXBXHtKK4rScCu3hAUdbhZGLXLMRaJIaDoc7g7RTQxw4-ZVzzMJMOMM_NzZduSvRxrsnpngcrwHy3Sc2a2jzztCEgn3fyubxNWld03iY4SS9ug/s1600/c-array-declaration.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;69&quot; data-original-width=&quot;340&quot; height=&quot;64&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsGjKrgnd30rDEkQVr3Ih9MnpF_LI2qqXBXHtKK4rScCu3hAUdbhZGLXLMRaJIaDoc7g7RTQxw4-ZVzzMJMOMM_NzZduSvRxrsnpngcrwHy3Sc2a2jzztCEgn3fyubxNWld03iY4SS9ug/s320/c-array-declaration.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;name[0]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;name[1]&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;name[2]&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;name[3]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;name[4]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold;&quot;&gt;
Each memory location will occupy 1 byte.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B01N54ZM9W&amp;amp;asins=B01N54ZM9W&amp;amp;linkId=8d00482aaf2d98d44261add07b9fdfd3&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt; &lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B0756WN4WN&amp;amp;asins=B0756WN4WN&amp;amp;linkId=90de9d9702c732175dad028601d7ca85&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt; &lt;/iframe&gt; &lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07191J5GB&amp;amp;asins=B07191J5GB&amp;amp;linkId=00acd379d514d51162703f6c546f8e4c&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt; &lt;/iframe&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;
&lt;span style=&quot;color: blue; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;u&gt;Storage of Values in 1-d Array&lt;/u&gt;-:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;In an array values can be stored by below two methods-:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Initialization method.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Input method.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;u&gt;Initialization Method&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In this method values to be stored in an array are provided at the time,when the array is declared.If the values to be stored in array are known to programmer than this method is best to initialize array.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;data type&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;array name&lt;/span&gt;[size of array]=&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{value 1,value 2,value 3,------value n};&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;num[5]&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{7,88,32,76,56};&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&amp;nbsp;per[7]&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{3.4,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;5.9&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;,4.8,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;2.6&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;,7.2,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;6.1&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;,5.8};&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;char&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;name[10]&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;sudarshan&quot;;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;While initializing an array it is optional to provide the size of array.In such as case, the size of array is determine by the number of value initialized.&lt;/li&gt;
&lt;li&gt;If the number of values initialized are less than the size of array then the remaining location are automatically filled with zero.&lt;/li&gt;
&lt;/ul&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/AVvXsEjRTh33kOYJGA9J1jfIl5ZKa54GyGyMlCX8K2wZSlEKlHaR4e2aNQEQrKwMX9yOKeH3VadqJ4hsUWfq48U-F6H54m1ZaLRE_Nza9avs8DFVtFbNGNTk28aMuSWcPoPSg_fdosATy1a8FrY/s1600/Array-Declaration-In-C.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;433&quot; data-original-width=&quot;800&quot; height=&quot;345&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTh33kOYJGA9J1jfIl5ZKa54GyGyMlCX8K2wZSlEKlHaR4e2aNQEQrKwMX9yOKeH3VadqJ4hsUWfq48U-F6H54m1ZaLRE_Nza9avs8DFVtFbNGNTk28aMuSWcPoPSg_fdosATy1a8FrY/s640/Array-Declaration-In-C.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Input Method&lt;/u&gt;-:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;When the values of array are stored at run-time,then the input method is used in 1-d array.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/b&gt;-:&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;size of array;i++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;{printf(&quot;\n Enter array element&amp;nbsp;&lt;/b&gt;&lt;b&gt;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/03/format-specifier-and-escape-sequence.html&quot; target=&quot;_blank&quot;&gt;format specifier&lt;/a&gt;&lt;/b&gt;&lt;b&gt;&quot;,array name[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; scanf(&quot;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/03/format-specifier-and-escape-sequence.html&quot; target=&quot;_blank&quot;&gt;format specifier&lt;/a&gt;&quot;,array name[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;10,i++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;{printf(&quot;\n Enter array element %d &quot;,num[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp; scanf(&quot;%d&quot;,num[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;u&gt;How to print value stored in 1-d Array&lt;/u&gt;?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The following syntax is used to print value stored in 1-d array-:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/b&gt;-:&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;printf(&quot;Array element are:\n);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;for(i=0;i&amp;lt;size of array;i++)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;printf(&quot;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/03/format-specifier-and-escape-sequence.html&quot; target=&quot;_blank&quot;&gt;format specifier&lt;/a&gt;&quot;,array name[i]);&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;printf(&quot;Array element are:\n);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;for(i=0;i&amp;lt;10;i++)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;printf(&quot;%d \n&quot;,num[i]);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Q- Write a program to insert marks of five student in one dimensional array.&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0px 4px 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 15px; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;
int main()
{
int s[5] = {77, 76, 78, 91,74}, i;
printf(&quot;\nStudents marks details:-&quot;);
for(i = 0; i &amp;lt; 5; i++)
{
printf(&quot;\ns%d = %d &quot;, i + 1, s[i]);
}
return 0;
}&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;&lt;b&gt;Output-:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;Students marks details:-&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;s1 = 77&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;s2 = 76&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;s3 = 78&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;s4 = 91&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 17px; letter-spacing: 0.8px;&quot;&gt;s5 = 74&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;marquee&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Introduction Of &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Array &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/array.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/marquee&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;marquee&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Watch The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Below&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Videos&lt;/span&gt;&lt;/marquee&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/i6m_NqnbN50/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/i6m_NqnbN50?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/7CPgjj3mKU4/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/7CPgjj3mKU4?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&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='https://techprogramiz.blogspot.com/feeds/5165596693821631906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/one-dimensional-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5165596693821631906'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5165596693821631906'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/one-dimensional-array.html' title='One-Dimensional Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQwcx69SwA8BBkYPkQ9flbq8YEaN6QvuYEU8os-PB_0kqOGrnARCGAwjnXzykBd_gKsb69cy7zSq24NiDPmjqHQiMB-AzZlbMk3mMt69zrODGiBGy6HF01MX-lPt_tRDQLQC-bpNgKyE/s72-c/arrays-in-c-language.webp" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Jogi Navada,near baba bankhandi nath mandir Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.370978 79.444369299999991</georss:point><georss:box>28.363992500000002 79.434284299999987 28.3779635 79.4544543</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-1694072516460628020</id><published>2020-05-03T18:29:00.002+05:30</published><updated>2023-07-14T07:49:17.550+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Array-:</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;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;div style=&quot;text-align: left;&quot;&gt;
An Array can be defined as,&quot;A finite number of homogeneous element&quot;,which are stored into the memory in such a way-:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;They occupy contiguous memory location.&lt;/li&gt;
&lt;li&gt;They are identify by a common name, having a different index called subscript.&lt;/li&gt;
&lt;li&gt;In array,we can store values, belonging to same data type in all location.&lt;/li&gt;
&lt;li&gt;There are&lt;b&gt; two&amp;nbsp;&lt;/b&gt;types of array-:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;One-Dimensional Array &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/one-dimensional-array.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Two-Dimensional Array &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/05/two-dimensional-array.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07XMFDHSG&amp;amp;asins=B07XMFDHSG&amp;amp;linkId=9a4d26180a3c437a68a82c3e672ddab6&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    
    &lt;/iframe&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B00R5LH9HO&amp;amp;asins=B00R5LH9HO&amp;amp;linkId=def21d2f8a2dcf0cc7be5875cb6bc69d&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&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/AVvXsEizVYg2GLVPDL7L4kVA3lXY0a9MZQW8ZKMWqoM2MKLbxVFuxrdg3ZiO5zxORY9RpDR33Gx3IZ7SVc2VPd8Y_Y4JExPkRtw4pKEAcgCghikLXBCkbeqzyPlUWWJsfzQL41jpD4AvsLqaIqo/s1600/da574129823ca89ba36365f03b95e508.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;363&quot; data-original-width=&quot;1276&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizVYg2GLVPDL7L4kVA3lXY0a9MZQW8ZKMWqoM2MKLbxVFuxrdg3ZiO5zxORY9RpDR33Gx3IZ7SVc2VPd8Y_Y4JExPkRtw4pKEAcgCghikLXBCkbeqzyPlUWWJsfzQL41jpD4AvsLqaIqo/s640/da574129823ca89ba36365f03b95e508.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;marquee&gt;Watch The&amp;nbsp;&lt;/marquee&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: blue; font-size: x-large;&quot;&gt;Below&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: x-large;&quot;&gt;Video&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/S93_VErFZD0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/S93_VErFZD0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&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;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;table style=&quot;color: black;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;line-number&quot; value=&quot;1&quot;&gt;&lt;/td&gt;&lt;td class=&quot;line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&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&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/1694072516460628020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1694072516460628020'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1694072516460628020'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/05/array.html' title='Array-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizVYg2GLVPDL7L4kVA3lXY0a9MZQW8ZKMWqoM2MKLbxVFuxrdg3ZiO5zxORY9RpDR33Gx3IZ7SVc2VPd8Y_Y4JExPkRtw4pKEAcgCghikLXBCkbeqzyPlUWWJsfzQL41jpD4AvsLqaIqo/s72-c/da574129823ca89ba36365f03b95e508.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-5478306643027126626</id><published>2020-04-17T22:33:00.002+05:30</published><updated>2020-04-28T20:18:27.788+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops and Statements"/><title type='text'>Continue Statement-:</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;b&gt;continue&lt;/b&gt; is a keyword.The continue statement can only be use within loop.On execution it transfers the control to the beginning of the loop,&lt;b&gt;Thus ignoring the execution of all other statement written below it within the loop.&lt;/b&gt;A continue statement should always be dependent upon the condition.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of continue statement in for loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;for( _ ; _ ;_ )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of continue statement in for loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
ads&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;250px&quot; scrolling=&quot;no&quot; src=&quot;https://inrdeals.com/dynamic/ad-300x250?user=sud614219101&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;for(i=1;i&amp;lt;=5;i++)&lt;br /&gt;
&amp;nbsp;{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; continue;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of continue statement in while loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;while(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of continue statement in while loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;while(i&amp;lt;=5)&lt;br /&gt;
{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;continue;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;i++;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of continue statement in do-while loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;main()&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;{initialize;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; do&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}while(condition);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/C1W2b&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://i.dell.com/sites/csimages/Banner_Imagery/all/570x283_featured_category_module-1.jpg&quot; width=&quot;&quot; /&gt;&lt;/a&gt;ads&lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of&amp;nbsp;continue statement in do-while loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;do&lt;br /&gt;
{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;continue;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;i++;&lt;br /&gt;
&amp;nbsp;}while(i&amp;lt;=5);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b&gt;4&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07S63SPT6&amp;amp;asins=B07S63SPT6&amp;amp;linkId=aa0bcc324e1bb10a5187e419b6c4c748&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/LNnJmpTtDR0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/LNnJmpTtDR0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/5478306643027126626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/continue-statement.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5478306643027126626'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/5478306643027126626'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/continue-statement.html' title='Continue Statement-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/LNnJmpTtDR0/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-1720208999715749034</id><published>2020-04-17T20:44:00.001+05:30</published><updated>2020-04-28T20:18:27.550+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops and Statements"/><title type='text'>Break Statement-:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1-&lt;span style=&quot;color: blue;&quot;&gt; break&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; is a keyword.&lt;br /&gt;
&lt;b&gt;2-&lt;/b&gt;The break statement is used within a loop or switch statement on execution,it transfer the control outside the loop or switch statement within which it is enclosed.&lt;br /&gt;
&lt;b&gt;3-&lt;/b&gt;The break statement should always be dependent upon a condition.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
&lt;div&gt;
ads&lt;a href=&quot;https://inr.deals/qzb14&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assets.gadgets360cdn.com/shop/assets/products/headphones_1585235998.jpeg?output-quality=60&amp;amp;output-format=webp&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of break statement in for loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;for( _ ; _ ;_ )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of break statement in for loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;for(i=1;i&amp;lt;=5;i++)&lt;br /&gt;
{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of break statement in while loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;while(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of&amp;nbsp;break statement in while loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;while(i&amp;lt;=5)&lt;br /&gt;
{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp; getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Syntax of break statement in do-while loop&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;main()&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;{initialize;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; do&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}while(condition);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;of&amp;nbsp;break statement in do-while loop&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int i=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;do&lt;br /&gt;
{ if(i==3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot; %d \n &quot;,i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp;} while(i&amp;lt;=5);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; getch();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Output-:&amp;nbsp; 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;ads&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=qf_sp_asin_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B01N6NFL53&amp;amp;asins=B01N6NFL53&amp;amp;linkId=8cb97724dd08be89f6a941314944a3c1&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;
&lt;marquee&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Learn how&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;i&gt;break statement&lt;/i&gt; &lt;/span&gt;works in Switch statement- &lt;a href=&quot;https://techprogramiz.blogspot.com/2020/04/switch-statement.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/y666ckcxxD0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/y666ckcxxD0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/1720208999715749034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/breakstatement.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1720208999715749034'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/1720208999715749034'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/breakstatement.html' title='Break Statement-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/y666ckcxxD0/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-8586009509227934688</id><published>2020-04-14T13:44:00.000+05:30</published><updated>2020-04-28T20:18:27.908+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops and Statements"/><title type='text'>do-while loop-:</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;
do-while is a condition control loop.The do-while loop is used to carry out looping operation,in which a statement or group of statements is/are executed repetitively until some logical condition has been satisfied.&lt;br /&gt;
do-while is also called &lt;b&gt;&quot;exit-control loop&quot;&lt;/b&gt;,because in do-while loop first the statement get executed and then the condition is checked,hence the do-while always execute at least one&#39;s.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In the do-while loop, there must be at least one such statement within the body of loop which changes the looping condition,during the execution of loop otherwise an infinite loop may occur.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/qzb14&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assets.gadgets360cdn.com/shop/assets/products/ice-cream-makers-for-home.jpeg?output-quality=60&amp;amp;output-format=webp&quot; width=&quot;&quot; /&gt;&lt;/a&gt;ads&lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; statement;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; while(condition);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;or,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;{statement-1;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;statement-2;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;statement-n;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}while(condition);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Write a program to find sum of series of terms: 2+4+6+8+ - - -n&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{int i=1,term=0,s=0;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the term&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;term);&lt;br /&gt;
&amp;nbsp; do{s=s+(2*i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}while(i&amp;lt;=term);&lt;br /&gt;
&amp;nbsp; printf(&quot;\n sum=%d&quot;,s);&lt;br /&gt;
&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;-:Enter the term 3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum=12&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B06XXKN9L1&amp;amp;asins=B06XXKN9L1&amp;amp;linkId=f45938e404e9599b75b5593e5e521b7d&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;

&lt;marquee&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/IEVCCexsgfc/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/IEVCCexsgfc?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/8586009509227934688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/do-while-loop.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8586009509227934688'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8586009509227934688'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/do-while-loop.html' title='do-while loop-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/IEVCCexsgfc/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-8500867973010906746</id><published>2020-04-14T11:43:00.001+05:30</published><updated>2020-04-28T20:18:27.848+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops and Statements"/><title type='text'>While Loop-:</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;
While loop is a condition control loop.The while loop is used to carry out looping operation.In while loop,a statement or a group of statements is/are executed repetitively until some condition has been satisfied.There must be at least one such statement within the body of loop which changes the looping condition during the execution of loop,otherwise an infinite loop may occur.While loop is also called &lt;b&gt;&quot;Entry-Control Loop&quot;&lt;/b&gt;because in while loop first the condition is checked and then the statement&amp;nbsp; get executed.&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://inr.deals/KXNTI&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://api.pizzahut.io/v1/content/en-in/in-1/images/promo/triple-treat-box-veg.9f4429a6dc6dcc732cae5e67ae8233b1.1.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;ads&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;while(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; statement;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;or,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;while(condition)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;{statement-1;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;statement-2;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;statement-n;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;u&gt;Example&lt;/u&gt;-:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://inr.deals/fzCoj&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://assets.myntassets.com/f_webp,w_245,c_limit,fl_progressive,dpr_2.0/assets/images/2020/3/30/13256c6e-c3ef-4e6f-97ac-8a2b81fcd75d1585580666979-0.jpg&quot; width=&quot;&quot; /&gt;&lt;/a&gt;ads&lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;Write a program to find sum of series of terms: 1+3+5+ - - -n.&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{ int term=0,i=1,s=0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot;Enter the number of term&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;scanf(&quot;%d &quot;,&amp;amp;term);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; while(i&amp;lt;=term)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;{s=s+(2*i-1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp;printf(&quot;\n sum=%d&quot;,s);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;-:Enter the number of term 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum=4&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
ads&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07DXC4HTB&amp;amp;asins=B07DXC4HTB&amp;amp;linkId=16fb7b37137e302a9b1f43260fa2b52c&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/e2JLZHmhyv4/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/e2JLZHmhyv4?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/8500867973010906746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/while-loop.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8500867973010906746'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/8500867973010906746'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/while-loop.html' title='While Loop-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/e2JLZHmhyv4/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-228211343371184003.post-3861696541422590269</id><published>2020-04-13T17:09:00.000+05:30</published><updated>2020-04-28T20:18:27.729+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops and Statements"/><title type='text'>for loop-:</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;
for loop is a counter controlled loop,perhaps the most commonly used looping statement in C programming. It is used to repeatedly execute either a single or a group of statement for a finite number of times.&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Syntax&lt;/u&gt;-:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;for(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;nitialization&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;;Testing;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;ncrement/Decrement&lt;/span&gt;&lt;span style=&quot;color: blue;&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; &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;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
ads&lt;a href=&quot;https://inr.deals/u2Qh3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;&quot; src=&quot;https://img1.gadgetsnow.com/gd/imgbn/Realme-Smartphone-s-Latest-08th-April-2020_02.jpg&quot; width=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;font-size: 10px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Initialization-: &lt;/b&gt;This expression is used to initialize same parameter [called an index],that control the looping action.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Testing Expression-: &lt;/b&gt;It represent a condition that must be TRUE for the loop to continue its execution.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;I&lt;/span&gt;&lt;b&gt;ncrement/Decrement Expression-: &lt;/b&gt;It is a unary expression or an assignment expression.It increment or decrement the index so that the loop continue.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: magenta;&quot;&gt;Example&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
main()&lt;/div&gt;
&lt;div&gt;
{ int i=0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;for(i=1;i&amp;lt;=5;i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;printf(&quot;\n %d&quot;,i);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;-: 1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: magenta;&quot;&gt;Example&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: magenta;&quot;&gt;-:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;write a program to find sum of series 1+2+3+----&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
main()&lt;/div&gt;
&lt;div&gt;
{int i=0,term=0,s=0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; printf(&quot;Enter the term&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;term);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; for(i=1;i&amp;lt;=term;i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; s=s+i;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; printf(&quot;\n sum=%d&quot;,s);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; getch();&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Output-: Enter the term 3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum=7&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;marquee&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Watch The &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Video&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Below&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/dOhhha_2eLU/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/dOhhha_2eLU?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=sudarshan1-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B07FH895M9&amp;amp;asins=B07FH895M9&amp;amp;linkId=274a3639379b6e0aae42eede0622c1c8&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;
    &lt;/iframe&gt;ads&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://techprogramiz.blogspot.com/feeds/3861696541422590269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/for-loop.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3861696541422590269'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/228211343371184003/posts/default/3861696541422590269'/><link rel='alternate' type='text/html' href='https://techprogramiz.blogspot.com/2020/04/for-loop.html' title='for loop-:'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/dOhhha_2eLU/default.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Bareilly Rd, Old City, Jogi Navada, Bareilly, Uttar Pradesh 243006, India</georss:featurename><georss:point>28.3718396 79.44727739999999</georss:point><georss:box>0.26835260000000005 38.138683399999991 56.4753266 120.75587139999999</georss:box></entry></feed>