<?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-1375943854469027806</id><updated>2024-12-18T19:31:25.653-08:00</updated><category term="C language"/><category term="Tutorial"/><category term="Programming"/><category term="Variables"/><category term="Conditional statement"/><category term="Operators"/><title type='text'>C Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-5962377653657757445</id><published>2021-09-24T20:50:00.007-07:00</published><updated>2021-09-24T20:53:48.365-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Conditional statement"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Decision Making</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Decision Making&lt;/h1&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/AVvXsEi_IMw-z6s7x-fHAAFNNA0PiiMTQ5nCdCmlaguMkS0u6FToJmAjyaocQGHMkdSVSxQQ1tx3zMFZTWy2umR2nHE4QXux_ln8NnF7jLY6mIWEnjMNGJOFk80RticsGK_etdEIbULEE_yxsUwL/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_IMw-z6s7x-fHAAFNNA0PiiMTQ5nCdCmlaguMkS0u6FToJmAjyaocQGHMkdSVSxQQ1tx3zMFZTWy2umR2nHE4QXux_ln8NnF7jLY6mIWEnjMNGJOFk80RticsGK_etdEIbULEE_yxsUwL/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;C conditional statements allow you to make a decision, based upon the result of a condition. These statements are called&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-weight: 600;&quot;&gt;Decision Making Statements&lt;/span&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-weight: 600;&quot;&gt;Conditional Statements&lt;/span&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000; font-size: medium;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Flow Chart of Control Statement:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000; font-size: medium;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span face=&quot;Inter, sans-serif&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSczsuJvbOu8ABrrB4b7SefPz991DbvNXd81VY9zgSiJ639oialUueQ1d00i-1wInTHTr4lUcF4M1L_zztS9ChgGo5MQf39CtTsu2Dbp8JW65CaocOsWyQLcYWkrDMNxgbNiNzXwjYAc5D/s297/image.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;297&quot; data-original-width=&quot;157&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSczsuJvbOu8ABrrB4b7SefPz991DbvNXd81VY9zgSiJ639oialUueQ1d00i-1wInTHTr4lUcF4M1L_zztS9ChgGo5MQf39CtTsu2Dbp8JW65CaocOsWyQLcYWkrDMNxgbNiNzXwjYAc5D/s0/image.png&quot; width=&quot;157&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;div class=&quot;card-header&quot; style=&quot;background: linear-gradient(to right, rgb(204, 227, 255), rgb(228, 252, 244)); border-radius: 0px; border: none; box-sizing: border-box; color: #222222; font-family: Inter, sans-serif; font-size: 16px; margin-bottom: 0px; padding: 0.75rem 1.25rem; text-align: left;&quot;&gt;Conditional Statements in C&lt;/div&gt;&lt;div class=&quot;card-body&quot; style=&quot;box-sizing: border-box; flex: 1 1 auto; font-family: Inter, sans-serif; min-height: 1px; padding: 1.25rem; text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;if statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;if-else statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Nested if-else statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;else if-statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;goto statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;switch statement&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Conditional Operator&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;font-size: 16px; text-align: left;&quot;&gt;If Statement :&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;If statements in C is used to control the program flow based on some condition, it&#39;s used to execute some statement code block if the expression is evaluated to true. Otherwise, it will get skipped.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #212529; font-family: helvetica; text-align: left;&quot;&gt;&lt;b&gt;Following is the syntax of if statements:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;if&lt;/span&gt; ( &lt;span style=&quot;color: #cc0000;&quot;&gt;Condition&lt;/span&gt; )&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;{&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&amp;nbsp; &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; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;statement 1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp; &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; &amp;nbsp;&lt;/span&gt;statement 2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&amp;nbsp; &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; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;...&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&quot;&gt;&lt;b&gt;Flow Chart of if Statement:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 16px; text-align: justify;&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;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/AVvXsEi4vvxmOOA15jcUwReaeqlySIRtC0_vvFIGHDsumSPTTsMNRmznHr23I5IsOuETmmIoQnJO6nhwyT4vsDP8P1LUvfBj3GQJw5FjHaFqkhAV08rSYL0knBMeis-J6luCQ7JgnhHItAA6P9rm/s320/unnamed+%25281%2529.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;261&quot; data-original-width=&quot;320&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4vvxmOOA15jcUwReaeqlySIRtC0_vvFIGHDsumSPTTsMNRmznHr23I5IsOuETmmIoQnJO6nhwyT4vsDP8P1LUvfBj3GQJw5FjHaFqkhAV08rSYL0knBMeis-J6luCQ7JgnhHItAA6P9rm/s0/unnamed+%25281%2529.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;color: #212529; font-family: helvetica;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&quot;&gt;Example of if Statement:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;stdio.h&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #212529;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt; int&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #212529;&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;&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;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&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; &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 style=&quot;color: #2b00fe;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt; a = 15, b = 20;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #212529;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt; ( &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;b&amp;gt;a &lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;) {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;printf&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&quot;b is greater&quot;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #212529;&quot;&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; &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;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt; 0;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: #212529;&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;&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;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;color: #212529; font-family: helvetica;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&quot;&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;color: #212529; font-family: helvetica;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; b is greater&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;if-else Statement:&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;span face=&quot;Inter, sans-serif&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;If else statements in C is also used to control the program flow based on some condition, only the difference is: it&#39;s used to execute some statement code block if the expression is evaluated to true, otherwise executes else&amp;nbsp;statement code block.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;b&gt;Syntax of if-else Statement:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&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;&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;if&lt;/span&gt;( &lt;span style=&quot;color: #cc0000;&quot;&gt;condition&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-size: medium;&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;&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;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&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; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Statement;&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-size: medium;&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;&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;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #2b00fe; font-size: medium;&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;&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;else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&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;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &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; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Statement;&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-size: medium;&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;&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;&lt;/span&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-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;b&gt;Flow Chart of if-else Statement:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9OEC5HGNz9Mnxp4HZKYUQtqjexSPbqsaYI2aAyd8EkTlDx5rRPOtmlftz1epEKCANqVfms2mxPXrDp6E31EWpPJVRddQJngv8fCmDk066uOfggVtwm2VjGlH0Vyq-KL2BnSw-mWLE68Dg/s330/c-if-else.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;330&quot; data-original-width=&quot;270&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9OEC5HGNz9Mnxp4HZKYUQtqjexSPbqsaYI2aAyd8EkTlDx5rRPOtmlftz1epEKCANqVfms2mxPXrDp6E31EWpPJVRddQJngv8fCmDk066uOfggVtwm2VjGlH0Vyq-KL2BnSw-mWLE68Dg/s320/c-if-else.png&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;Example of if-else Statement:&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span class=&quot;com&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #880000; font-size: 16px; text-align: left; white-space: pre;&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;#include&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;int &lt;/span&gt;main&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&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;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;span class=&quot;kwd&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #000088; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; a&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; b&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;printf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;Please enter the value for a: \n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;scanf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;printf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;Please the value for b: \n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;scanf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;span class=&quot;kwd&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #000088; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &amp;gt; b&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&amp;nbsp;&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;printf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;a is greater \n &quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span class=&quot;kwd&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #000088; font-size: 16px; text-align: left; white-space: pre;&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;&amp;nbsp;&amp;nbsp;&lt;/span&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&amp;nbsp;&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;printf&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #008800; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;&quot;b is greater \n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&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;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; font-size: 16px; text-align: left; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; face=&quot;SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace&quot; style=&quot;box-sizing: border-box; color: #666600; font-size: 16px; text-align: left; white-space: pre;&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;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;b&gt;Output of Program:-&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&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; Please enter the value for a : 5&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&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; Please enter the value for b : 10&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&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; b is greater&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&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; ************Stay Tuned for upcoming Tutorial***********&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/structure-of-program.html&quot; role=&quot;button&quot; style=&quot;background-color: white; font-size: medium;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: large; text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;#&quot; role=&quot;button&quot; style=&quot;background-color: white; font-size: medium;&quot;&gt;Next&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/5962377653657757445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/decision-making.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/5962377653657757445'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/5962377653657757445'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/decision-making.html' title='Decision Making'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_IMw-z6s7x-fHAAFNNA0PiiMTQ5nCdCmlaguMkS0u6FToJmAjyaocQGHMkdSVSxQQ1tx3zMFZTWy2umR2nHE4QXux_ln8NnF7jLY6mIWEnjMNGJOFk80RticsGK_etdEIbULEE_yxsUwL/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-6411486221407686661</id><published>2021-09-24T06:42:00.003-07:00</published><updated>2021-09-24T20:52:14.017-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>First Program in C</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Structure of Program&lt;/h1&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/AVvXsEgO3mMY72lCI32s4sFEkkIneMvcI1MGg5zDLJod1Ue8G_froRHwNdu_RCqRiloCUdD_6HeUgQTP4giD3iGgQN5hp_sR9VCQ_ZP971tQuXmXWvjaRx9Nrk9dhAmUpjNJMjdNDlnt68QL2SUY/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO3mMY72lCI32s4sFEkkIneMvcI1MGg5zDLJod1Ue8G_froRHwNdu_RCqRiloCUdD_6HeUgQTP4giD3iGgQN5hp_sR9VCQ_ZP971tQuXmXWvjaRx9Nrk9dhAmUpjNJMjdNDlnt68QL2SUY/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;Sample Code of Print &#39;Hello World&#39; in screen&lt;/span&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&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-size: large;&quot;&gt; &lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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;color: #2b00fe;&quot;&gt;int&lt;/span&gt; main()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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; {&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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; &lt;span style=&quot;color: #660000;&quot;&gt;printf&lt;/span&gt;(&lt;span style=&quot;color: #38761d;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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; &lt;span style=&quot;color: #2b00fe;&quot;&gt;return&lt;/span&gt; 0;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&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;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: justify;&quot;&gt;Detail Description about program:&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;stdio is standard for input/output, this allows us to use some commands which includes a file called stdio.h.&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;or&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;This is a preprocessor command. That notifies the compiler to include the header file stdio.h in the program before compiling the source-code.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;int/void main()&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;int/void is a return value, which will be explained in a while.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;main()&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;The main() is the main function where program execution begins. Every C program must contain only one main function.&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;or&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;This is the main function, which is the default entry point for every C program and the void in front of it indicates that it does not return a value.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Braces&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Two curly brackets &quot;{...}&quot; are used to group all statements.&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;or&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;Curly braces which shows how much the main() function has its scope.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;printf()&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;It is a function in C, which prints text on the screen.&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;or&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 1.6em; margin: 0px; padding-bottom: 10px;&quot;&gt;This is another pre-defined function of C which is used to be displayed text string in the screen.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;return 0&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;At the end of the main function returns value 0.&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/operators-in-c.html&quot; role=&quot;button&quot; style=&quot;text-align: left;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: large;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/decision-making.html&quot; role=&quot;button&quot; style=&quot;text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/6411486221407686661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/structure-of-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/6411486221407686661'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/6411486221407686661'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/structure-of-program.html' title='First Program in C'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO3mMY72lCI32s4sFEkkIneMvcI1MGg5zDLJod1Ue8G_froRHwNdu_RCqRiloCUdD_6HeUgQTP4giD3iGgQN5hp_sR9VCQ_ZP971tQuXmXWvjaRx9Nrk9dhAmUpjNJMjdNDlnt68QL2SUY/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-395225701187380377</id><published>2021-09-24T06:30:00.002-07:00</published><updated>2021-09-24T06:42:51.402-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Operators"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Variables"/><title type='text'>Operators in C</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Operators in C&lt;/h1&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/AVvXsEhGxAn9qPFDzQqhyJkOsTQZ3yrho5G51HApcnIQLKQw-2C7nRmMuOxWBh-w1aYN4De6uWEzY8lWff83cLB987TWtOSIvWUuAYrrACDf1jzRVxPn2GcnypxNCM712EmzvQpSIuyG1d0CLwZ8/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGxAn9qPFDzQqhyJkOsTQZ3yrho5G51HApcnIQLKQw-2C7nRmMuOxWBh-w1aYN4De6uWEzY8lWff83cLB987TWtOSIvWUuAYrrACDf1jzRVxPn2GcnypxNCM712EmzvQpSIuyG1d0CLwZ8/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;C operators are symbols that are used to perform mathematical or logical manipulations. The C programming language is rich with built-in operators. Operators take part in a program for manipulating data and variables and form a part of the mathematical or logical expressions.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #333333; font-size: 1.424em;&quot;&gt;Types of Operators in C&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;card&quot; style=&quot;background-clip: border-box; background-color: white; border-radius: 1px; border: 1px solid rgb(188, 232, 241); box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 1px; box-sizing: border-box; display: flex; flex-direction: column; font-family: Inter, sans-serif; font-size: 16px; margin-bottom: 20px; min-width: 0px; overflow-wrap: break-word; position: relative; text-align: left;&quot;&gt;&lt;div class=&quot;card-header&quot; style=&quot;background: linear-gradient(to right, rgb(204, 227, 255), rgb(228, 252, 244)); border-radius: 0px; border: none; box-sizing: border-box; color: #222222; margin-bottom: 0px; padding: 0.75rem 1.25rem;&quot;&gt;C programming language offers various types of operators having different functioning capabilities.&lt;/div&gt;&lt;div class=&quot;card-body&quot; style=&quot;box-sizing: border-box; flex: 1 1 auto; min-height: 1px; padding: 1.25rem;&quot;&gt;&lt;ol style=&quot;box-sizing: border-box; counter-reset: item 0; margin: 0px 0px 0px 10px; padding-left: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Arithmetic Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Relational Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Logical Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Assignment Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Increment and Decrement Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Conditional Operator&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Bitwise Operators&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style-type: none; margin-bottom: 8px; overflow: hidden; padding-bottom: 1px; padding-left: 25px; position: relative;&quot;&gt;Special Operators&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Arithmetic_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Arithmetic Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;Arithmetic Operators are used to performing mathematical calculations like addition (+), subtraction (-), multiplication (*), division (/) and modulus (%).&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;+&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Addition&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;-&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Subtraction&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;*&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Multiplication&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;/&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Division&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;%&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Modulus&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.266em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;C_Program_to_Add_Two_Numbers&quot; style=&quot;box-sizing: border-box;&quot;&gt;C Program to Add Two Numbers&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;example&quot; style=&quot;box-sizing: border-box; color: #ed143d; font-family: Inter, sans-serif; font-size: 14.4px; text-align: left; text-decoration-line: underline; user-select: none;&quot;&gt;Example:&lt;/div&gt;&lt;pre style=&quot;background-color: rgba(247, 247, 247, 0.3); border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.125); box-shadow: rgba(0, 0, 0, 0.075) 0px 0.125rem 0.25rem; box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 16px; margin-bottom: 20px; margin-top: 0px; max-height: 600px; overflow-wrap: initial; overflow: auto; padding: 8px; position: relative; tab-size: 4; text-align: left; word-break: initial;&quot;&gt;&lt;code class=&quot;prettyprint prettyprinted&quot; data-file=&quot;c_add_two_number&quot; style=&quot;background-color: inherit; box-sizing: border-box; color: #111111; display: block; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: inherit; overflow-wrap: break-word; tab-size: 4; width: 842.136px; word-break: break-all;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;#include&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666;&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;/* Variables Defining and Assign values */&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
 k&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
 printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;sum of two numbers is %d\n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; k&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; 
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;example&quot; style=&quot;box-sizing: border-box; color: #ed143d; font-family: Inter, sans-serif; font-size: 14.4px; text-align: left; text-decoration-line: underline; user-select: none;&quot;&gt;Program Output:&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;&lt;img alt=&quot;c-add-two-numbers&quot; class=&quot;alignnone size-full wp-image-2581 ezlazyloaded&quot; data-ezsrc=&quot;/wp-content/uploads/2014/08/c-add-two-numbers.jpg?ezimgfmt=rs:262x122/rscb6/ng:webp/ngcb6&quot; ezimgfmt=&quot;rs rscb6 src ng ngcb6&quot; ezoid=&quot;0.3923702672778968&quot; height=&quot;122&quot; loading=&quot;lazy&quot; src=&quot;https://www.w3schools.in/wp-content/uploads/2014/08/c-add-two-numbers.jpg?ezimgfmt=rs:262x122/rscb6/ng:webp/ngcb6&quot; style=&quot;border-style: none; box-sizing: border-box; height: auto; max-width: 100%; user-select: none; vertical-align: middle;&quot; width=&quot;262&quot; /&gt;&lt;/p&gt;&lt;div class=&quot;text-center mt-3&quot; style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; margin-top: 1rem; text-align: center;&quot;&gt;&lt;/div&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Increment_and_Decrement_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Increment and Decrement Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;Increment and Decrement Operators are useful operators generally used to minimize the calculation, i.e. ++x and x++ means x=x+1 or -x and x−−means x=x-1. But there is a slight difference between ++ or −−&amp;nbsp;written before or after the operand. Applying the pre-increment first add one to the operand and then the result is assigned to the variable on the left whereas post-increment first assigns the value to the variable on the left and then increment the operand.&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;++&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Increment&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;−−&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Decrement&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;example&quot; style=&quot;box-sizing: border-box; color: #ed143d; font-family: Inter, sans-serif; font-size: 14.4px; text-align: left; text-decoration-line: underline; user-select: none;&quot;&gt;Example: To Demonstrate prefix and postfix modes.&lt;/div&gt;&lt;pre style=&quot;background-color: rgba(247, 247, 247, 0.3); border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.125); box-shadow: rgba(0, 0, 0, 0.075) 0px 0.125rem 0.25rem; box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 16px; margin-bottom: 20px; margin-top: 0px; max-height: 600px; overflow-wrap: initial; overflow: auto; padding: 8px; position: relative; tab-size: 4; text-align: left; word-break: initial;&quot;&gt;&lt;code class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: inherit; box-sizing: border-box; color: #111111; display: block; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: inherit; overflow-wrap: break-word; tab-size: 4; width: 842.136px; word-break: break-all;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;#include&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;//stdio.h is a header file used for input.output purpose.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;//set a and b both equal to 5.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    
    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;//Print them and decrementing each time.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;//Use postfix mode for a and prefix mode for b.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;\n%d %d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;--,--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;\n%d %d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;--,--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;\n%d %d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;--,--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;\n%d %d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;--,--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
    printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;\n%d %d&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;--,--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;example&quot; style=&quot;box-sizing: border-box; color: #ed143d; font-family: Inter, sans-serif; font-size: 14.4px; text-align: left; text-decoration-line: underline; user-select: none;&quot;&gt;Program Output:&lt;/div&gt;&lt;pre style=&quot;background-color: rgba(247, 247, 247, 0.3); border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.125); box-shadow: rgba(0, 0, 0, 0.075) 0px 0.125rem 0.25rem; box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 16px; margin-bottom: 20px; margin-top: 0px; max-height: 600px; overflow-wrap: initial; overflow: auto; padding: 8px; position: relative; tab-size: 4; text-align: left; word-break: initial;&quot;&gt;5 4
4 3
3 2
2 1
1 0&lt;/pre&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Relational_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Relational Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;Relational operators are used to comparing two quantities or values.&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;==&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Is equal to&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;!=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Is not equal to&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Greater than&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;lt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Less than&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;gt;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Greater than or equal to&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;lt;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Less than or equal to&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Logical_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Logical Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;C provides three&amp;nbsp;logical operators when we test more than one condition to make decisions. These are: &amp;amp;&amp;amp; (meaning logical AND), || (meaning logical OR) and ! (meaning logical NOT).&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;amp;&amp;amp;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&lt;span style=&quot;background-color: rgba(249, 249, 249, 0.3); border-radius: 2px; border: 1px solid rgb(233, 230, 230); box-sizing: border-box; padding: 0px 4px;&quot;&gt;And&lt;/span&gt;&amp;nbsp;operator. It performs logical conjunction of two expressions. (if both expressions evaluate to True, result is True. If either expression evaluates to False, the result is False)&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;||&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&lt;span style=&quot;background-color: rgba(249, 249, 249, 0.3); border-radius: 2px; border: 1px solid rgb(233, 230, 230); box-sizing: border-box; padding: 0px 4px;&quot;&gt;Or&lt;/span&gt;&amp;nbsp;operator. It performs a logical disjunction on two expressions. (if either or both expressions evaluate to True, the result is True)&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;!&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&lt;span style=&quot;background-color: rgba(249, 249, 249, 0.3); border-radius: 2px; border: 1px solid rgb(233, 230, 230); box-sizing: border-box; padding: 0px 4px;&quot;&gt;Not&lt;/span&gt;&amp;nbsp;operator. It&amp;nbsp;performs logical negation on an expression.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Bitwise_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Bitwise Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;C provides a special operator for bit operation between two variables.&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;lt;&amp;lt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary Left Shift Operator&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;gt;&amp;gt;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary Right Shift Operator&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;~&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary Ones Complement Operator&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;amp;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary AND Operator&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;^&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary XOR Operator&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;|&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Binary OR Operator&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Assignment_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Assignment Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;Assignment operators applied to assign the result of an expression to a variable. C has a collection of shorthand assignment operators.&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;+=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Increments then assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;-=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Decrements then assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;*=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Multiplies then assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;/=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Divides then assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;%=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Modulus then assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;lt;&amp;lt;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Left shift and assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;gt;&amp;gt;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Right shift and assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;amp;=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Bitwise AND assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;^=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Bitwise exclusive OR and assign&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;|=&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;Bitwise inclusive OR and assign&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Conditional_Operator&quot; style=&quot;box-sizing: border-box;&quot;&gt;Conditional Operator&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;C offers a ternary operator which is the conditional operator (?: in combination) to construct conditional expressions.&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;? :&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;nbsp;Conditional Expression&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.424em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Special_Operators&quot; style=&quot;box-sizing: border-box;&quot;&gt;Special Operators&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6em; margin: 0px; padding-bottom: 10px; text-align: left;&quot;&gt;C supports some special operators&lt;/p&gt;&lt;table class=&quot;table&quot; style=&quot;background-color: white; border-collapse: collapse; color: #212529; font-family: Inter, sans-serif; font-size: 16px; margin: 0px 0px 1em; max-width: 100%; width: 860.136px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot; width=&quot;70&quot;&gt;Operator&lt;/th&gt;&lt;th style=&quot;background-color: #3d3d3d; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-collapse: collapse; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px; box-sizing: border-box; color: white; font-size: 15px; font-weight: 400; min-width: 60px; padding: 0.75rem; text-align: inherit; vertical-align: top;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;sizeof()&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;nbsp;Returns the size of a memory location.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;amp;&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;nbsp;Returns the address of a memory location.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;*&lt;/td&gt;&lt;td style=&quot;border-color: rgba(214, 214, 214, 0.5); border-style: solid; border-width: 1px; box-sizing: border-box; padding: 0.75rem; vertical-align: top;&quot;&gt;&amp;nbsp;Pointer to a variable.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style=&quot;box-sizing: border-box; color: #333333; font-family: Inter, sans-serif; font-size: 1.266em; line-height: 1.2; margin: 30px 0px 10px; text-align: left; user-select: none;&quot;&gt;&lt;span id=&quot;Program_to_demonstrate_the_use_of_sizeof_operator&quot; style=&quot;box-sizing: border-box;&quot;&gt;Program to demonstrate the use of sizeof operator&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;example&quot; style=&quot;box-sizing: border-box; color: #ed143d; font-family: Inter, sans-serif; font-size: 14.4px; text-align: left; text-decoration-line: underline; user-select: none;&quot;&gt;Example:&lt;/div&gt;&lt;pre style=&quot;background-color: rgba(247, 247, 247, 0.3); border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.125); box-shadow: rgba(0, 0, 0, 0.075) 0px 0.125rem 0.25rem; box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: 16px; margin-bottom: 20px; margin-top: 0px; max-height: 600px; overflow-wrap: initial; overflow: auto; padding: 8px; position: relative; tab-size: 4; text-align: left; word-break: initial;&quot;&gt;&lt;code class=&quot;prettyprint prettyprinted&quot; data-file=&quot;c_sizeof_operator&quot; style=&quot;background-color: inherit; box-sizing: border-box; color: #111111; display: block; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;liberation mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace; font-size: inherit; overflow-wrap: break-word; tab-size: 4; width: 842.136px; word-break: break-all;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;#include&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000;&quot;&gt;/* Variables Defining and Assign values */&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;      printf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800;&quot;&gt;&quot;integer: %d\n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088;&quot;&gt;sizeof&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/variables-in-c.html&quot; role=&quot;button&quot; style=&quot;text-align: left;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: large;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/structure-of-program.html&quot; role=&quot;button&quot; style=&quot;text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/395225701187380377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/operators-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/395225701187380377'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/395225701187380377'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/operators-in-c.html' title='Operators in C'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGxAn9qPFDzQqhyJkOsTQZ3yrho5G51HApcnIQLKQw-2C7nRmMuOxWBh-w1aYN4De6uWEzY8lWff83cLB987TWtOSIvWUuAYrrACDf1jzRVxPn2GcnypxNCM712EmzvQpSIuyG1d0CLwZ8/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-4682481406498396572</id><published>2021-09-24T06:23:00.004-07:00</published><updated>2021-09-24T06:30:49.860-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Variables"/><title type='text'>Variables in C</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Variables in C&lt;/span&gt;&lt;/h1&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/AVvXsEiw2UKWi6WdSV3CBoN0SdFZMJ7IsBSyBgaqUUPFLSKStL5e0QITU5lfl-pFEl9fsEnIUnB57Igd2joDpgadOGC1cNTv-vNwsPp9KSgnzkX9vdA8DL1ofA0zBy2MKENW9onmwvmKl4s1XK0z/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw2UKWi6WdSV3CBoN0SdFZMJ7IsBSyBgaqUUPFLSKStL5e0QITU5lfl-pFEl9fsEnIUnB57Igd2joDpgadOGC1cNTv-vNwsPp9KSgnzkX9vdA8DL1ofA0zBy2MKENW9onmwvmKl4s1XK0z/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific type, which determines the size and layout of the variable&#39;s memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;The name of a variable can be composed of letters, digits, and the underscore character. It must begin with either a letter or an underscore. Upper and lowercase letters are distinct because C is case-sensitive&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Verdana, Tahoma;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Arial, Verdana, Tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;font-family: Arial, Verdana, Tahoma; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;There are some rules to choosing a variable name&lt;/span&gt;&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;A variable name can consist of Capital letters A-Z, lowercase letters a-z, digits 0-9, and the underscore character.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;The first character must be a letter or underscore.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;Blank spaces cannot be used in variable names.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;Special characters like #, $ are not allowed.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;C keywords cannot be used as variable names.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;Variable names are case sensitive.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;Values of the variables can be numeric or alphabetic.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;Variable type can be char, int, float, double, or void.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p style=&quot;font-family: Arial, Verdana, Tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;Based on the basic types explained in the previous chapter, there will be the following basic variable types −&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); font-family: Arial, Verdana, Tahoma; font-size: 16px; margin-bottom: 20px; max-width: 100%; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;Sr.No.&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;Type &amp;amp; Description&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;char&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;Typically a single octet(one byte). It is an integer type.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;The most natural size of integer for the machine.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;float&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;A single-precision floating point value.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;double&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;A double-precision floating point value.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;5&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;void&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;Represents the absence of type.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;font-family: Arial, Verdana, Tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;Some examples are −&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border-radius: 8px; color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; overflow-x: auto; padding: 15px;&quot;&gt;extern int d = 3, f = 5;    // declaration of d and f. 
int d = 3, f = 5;           // definition and initializing d and f. 
byte z = 22;                // definition and initializes z. 
char x = &#39;x&#39;;               // the variable x has the value &#39;x&#39;.&lt;/pre&gt;&lt;p style=&quot;font-family: Arial, Verdana, Tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/c-data-types.html&quot; role=&quot;button&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; text-align: left;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: large;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/operators-in-c.html&quot; role=&quot;button&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Arial, Verdana, Tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/4682481406498396572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/variables-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4682481406498396572'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4682481406498396572'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/variables-in-c.html' title='Variables in C'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw2UKWi6WdSV3CBoN0SdFZMJ7IsBSyBgaqUUPFLSKStL5e0QITU5lfl-pFEl9fsEnIUnB57Igd2joDpgadOGC1cNTv-vNwsPp9KSgnzkX9vdA8DL1ofA0zBy2MKENW9onmwvmKl4s1XK0z/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-376142773397117942</id><published>2021-09-23T22:58:00.003-07:00</published><updated>2021-09-24T06:24:21.267-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>C - Data Types</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; font-size: 28px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;C - Data Types&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: x-large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd4Tyv8ZbF-2lShtBZN_xMmvQgm-UAiTSFgdAyyGdhltEfaW4lWz-dnNxy3sYmJRjd7nbf6saW8Qp-uZJg9XIbqz8uzTHMes52OhHYdh1CxQC3G48RCAn7wguYKbnp_ak31TgP2UDiCCnP/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd4Tyv8ZbF-2lShtBZN_xMmvQgm-UAiTSFgdAyyGdhltEfaW4lWz-dnNxy3sYmJRjd7nbf6saW8Qp-uZJg9XIbqz8uzTHMes52OhHYdh1CxQC3G48RCAn7wguYKbnp_ak31TgP2UDiCCnP/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: inherit; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Data types in c refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The types in C can be classified as follows −&lt;/span&gt;&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); margin-bottom: 20px; max-width: 100%; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Sr.No.&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Types &amp;amp; Description&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Basic Types&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;They are arithmetic types and are further classified into: (a) integer types and (b) floating-point types.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Enumerated types&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;They are again arithmetic types and they are used to define variables that can only assign certain discrete integer values throughout the program.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The type void&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The type specifier&amp;nbsp;&lt;i&gt;void&lt;/i&gt;&amp;nbsp;indicates that no value is available.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;4&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Derived types&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;They include (a) Pointer types, (b) Array types, (c) Structure types, (d) Union types and (e) Function types.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The array types and structure types are referred collectively as the aggregate types. The type of a function specifies the type of the function&#39;s return value. We will see the basic types in the following section, where as other types will be covered in the upcoming chapters.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Integer Types&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The following table provides the details of standard integer types with their storage sizes and value ranges −&lt;/span&gt;&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); margin-bottom: 20px; max-width: 100%; text-align: center; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top; width: 147.575px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Type&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top; width: 126.1px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Storage size&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Value range&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;char&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;-128 to 127 or 0 to 255&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;unsigned char&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;0 to 255&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;signed char&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;-128 to 127&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;int&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2 or 4 bytes&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;-32,768 to 32,767 or -2,147,483,648 to 2,147,483,647&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;unsigned int&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2 or 4 bytes&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;0 to 65,535 or 0 to 4,294,967,295&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;short&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2 bytes&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;-32,768 to 32,767&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;unsigned short&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2 bytes&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;0 to 65,535&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;long&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;8 bytes or (4bytes for 32 bit OS)&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;-9223372036854775808 to 9223372036854775807&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;unsigned long&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;8 bytes&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;0 to 18446744073709551615&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Floating-Point Types&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The following table provide the details of standard floating-point types with storage sizes and value ranges and their precision −&lt;/span&gt;&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); margin-bottom: 20px; max-width: 100%; text-align: center; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Type&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Storage size&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Value range&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Precision&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;float&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;4 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1.2E-38 to 3.4E+38&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;6 decimal places&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;double&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;8 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2.3E-308 to 1.7E+308&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;15 decimal places&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;long double&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;10 byte&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;3.4E-4932 to 1.1E+4932&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;19 decimal places&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The header file float.h defines macros that allow you to use these values and other details about the binary representation of real numbers in your programs&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The void Type&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The void type specifies that no value is available. It is used in three kinds of situations −&lt;/span&gt;&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); font-size: 16px; margin-bottom: 20px; max-width: 100%; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Sr.No.&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; text-align: center; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Types &amp;amp; Description&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Function returns as void&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;There are various functions in C which do not return any value or you can say they return void. A function with no return value has the return type as void. For example,&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;void exit (int status);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Function arguments as void&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;There are various functions in C which do not accept any parameter. A function with no parameter can accept a void. For example,&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;int rand(void);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;ts&quot; style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Pointers to void&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A pointer of type void * represents the address of an object, but not its type. For example, a memory allocation function&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;void *malloc( size_t size );&lt;/span&gt;&amp;nbsp;returns a pointer to void which can be casted to any data type.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/basic-syntax.html&quot; role=&quot;button&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-size: large; text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/variables-in-c.html&quot; role=&quot;button&quot;&gt;Next&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/376142773397117942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/c-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/376142773397117942'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/376142773397117942'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/c-data-types.html' title='C - Data Types'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd4Tyv8ZbF-2lShtBZN_xMmvQgm-UAiTSFgdAyyGdhltEfaW4lWz-dnNxy3sYmJRjd7nbf6saW8Qp-uZJg9XIbqz8uzTHMes52OhHYdh1CxQC3G48RCAn7wguYKbnp_ak31TgP2UDiCCnP/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-8134603566108700790</id><published>2021-09-22T21:20:00.009-07:00</published><updated>2021-09-23T23:35:24.140-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Basic Syntax</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: x-large;&quot;&gt;&amp;nbsp;C - Basic Syntax&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXURudO-puJmoUb4nkJcXc8XlVZii94zxMHW7FbgukLoW918X-96qnB4pJaqaexoEHVFtUFmDGXDuCtrKnQvD228YtHr7FeWFy1orCOtVq3QoicGjPzEcWQ8xKH4p8Cf0HhQtKHGeBJbef/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;You have seen the basic structure of a C program, so it will be easy to understand other basic building blocks of the C programming language.&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Tokens in C&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol. For example, the following C statement consists of five tokens −&lt;/span&gt;&lt;/p&gt;&lt;h4 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; &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 style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;printf(&quot;Hello, World! \n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The individual tokens are −&lt;/span&gt;&lt;/p&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; &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;b&gt; &lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;printf&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: inherit;&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;&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;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: inherit;&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;&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; &amp;nbsp;&lt;/span&gt;&quot;Hello, World! \n&quot;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: inherit;&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;&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;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: inherit;&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;&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;/b&gt;&lt;/span&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Semicolons&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;In a C program, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end of one logical entity.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Given below are two different statements −&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: inherit;&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;&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;b&gt;printf(&lt;span style=&quot;color: #38761d;&quot;&gt;&quot;Hello, World! \n&quot;&lt;/span&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&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;&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 style=&quot;color: #0b5394;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #6fa8dc;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Comments&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Comments are like helping text in your C program and they are ignored by the compiler. They start with /* and terminate with the characters */ as shown below −&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border-radius: 8px; color: rgba(0, 0, 0, 0.87); overflow-x: auto; padding: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;/* my first program in C */
&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;You cannot have comments within comments and they do not occur within a string or character literals.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Identifiers&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z, a to z, or an underscore &#39;_&#39; followed by zero or more letters, underscores, and digits (0 to 9).&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;C does not allow punctuation characters such as @, $, and % within identifiers. C is a&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;case-sensitive&lt;/span&gt;&amp;nbsp;programming language. Thus,&amp;nbsp;&lt;i&gt;Manpower&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;manpower&lt;/i&gt;&amp;nbsp;are two different identifiers in C. Here are some examples of acceptable identifiers −&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border-radius: 8px; color: rgba(0, 0, 0, 0.87); font-size: 15px; overflow-x: auto; padding: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;mohd       zara    abc   move_name  a_123
myname50   _temp   j     a23b9      retVal
&lt;/span&gt;&lt;/pre&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Keywords&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The following list shows the reserved words in C. These reserved words may not be used as constants or variables or any other identifier names.&lt;/span&gt;&lt;/p&gt;&lt;table class=&quot;table table-bordered&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(221, 221, 221); color: rgba(0, 0, 0, 0.87); font-size: 16px; margin-bottom: 20px; max-width: 100%; text-align: center; width: 716.55px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top; width: 161.887px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;auto&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top; width: 161.887px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;else&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top; width: 161.887px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;long&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top; width: 161.887px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;switch&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;break&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;enum&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;register&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;typedef&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;case&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;extern&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;return&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;union&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;char&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;float&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;short&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;unsigned&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;const&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;for&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;signed&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;void&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;continue&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;goto&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;sizeof&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;volatile&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;default&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;if&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;static&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;while&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;do&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;int&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;struct&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;_Packed&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;double&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(221, 221, 221); line-height: 1.42857; padding: 8px; vertical-align: top;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Whitespace in C&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A line containing only whitespace, possibly with a comment, is known as a blank line, and a C compiler totally ignores it.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Whitespace is the term used in C to describe blanks, tabs, newline characters and comments. Whitespace separates one part of a statement from another and enables the compiler to identify where one element in a statement, such as int, ends and the next element begins. Therefore, in the following statement −&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;int &lt;/span&gt;age;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;there must be at least one whitespace character (usually a space) between int and age for the compiler to be able to distinguish them. On the other hand, in the following statement −&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&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;&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;fruit = apples + oranges;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;// get the total fruit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;no whitespace characters are necessary between fruit and =, or between = and apples, although you are free to include some if you wish to increase readability.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/structure-of-c-program.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-size: large;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/c-data-types.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/8134603566108700790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/basic-syntax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8134603566108700790'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8134603566108700790'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/basic-syntax.html' title='Basic Syntax'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXURudO-puJmoUb4nkJcXc8XlVZii94zxMHW7FbgukLoW918X-96qnB4pJaqaexoEHVFtUFmDGXDuCtrKnQvD228YtHr7FeWFy1orCOtVq3QoicGjPzEcWQ8xKH4p8Cf0HhQtKHGeBJbef/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-8882182075049240047</id><published>2021-09-22T01:25:00.016-07:00</published><updated>2021-09-22T21:30:38.326-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Structure of C Program</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; font-family: inherit; font-size: x-large;&quot;&gt;&amp;nbsp;Structure of C Program&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8K4kHhCvvzrNFfgZ8LMEkjNXHe9xZtjZu5wraNyAUpA_TJ_EQQa1rRt3eQ7wBezM9U_zvbTdT-1v10u2ycNg0DcWHag_O8VtamiAhoAlfZkAnfc2lF4gL1rXX9v3p3kMb5tiuqHZmYl3t/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;A C program basically consists of the following parts −&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.87)&quot; style=&quot;font-family: inherit; font-size: 16px; text-align: start;&quot;&gt;Preprocessor Commands&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.87)&quot; style=&quot;font-family: inherit; font-size: 16px; text-align: start;&quot;&gt;Functions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.87)&quot; style=&quot;font-family: inherit; font-size: 16px; text-align: start;&quot;&gt;Variables&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.87)&quot; style=&quot;font-family: inherit; font-size: 16px; text-align: start;&quot;&gt;Statements &amp;amp; Expressions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span color=&quot;rgba(0, 0, 0, 0.87)&quot; style=&quot;font-family: inherit; font-size: 16px; text-align: start;&quot;&gt;Comments&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Let us look at a simple code that would print the words &quot;Hello World&quot; −&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: inherit;&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; #include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main() {&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&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; &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;color: #6aa84f;&quot;&gt;/* my first program in C */&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&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; &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;printf(&lt;span style=&quot;color: #e06666;&quot;&gt;&quot;Hello, World! \n&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&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; &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;return 0;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px;&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; &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;/p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Let us take a look at the various parts of the above program −&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;The first line of the program&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/i&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;&amp;nbsp;is a preprocessor command, which tells a C compiler to include stdio.h file before going to actual compilation.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;The next line&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;int main()&lt;/i&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;&amp;nbsp;is the main function where the program execution begins.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;The next line /*...*/ will be ignored by the compiler and it has been put to add additional comments in the program. So such lines are called comments in the program.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;The next line&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;printf(...)&lt;/i&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;&amp;nbsp;is another function available in C which causes the message &quot;Hello, World!&quot; to be displayed on the screen.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;The next line&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px; font-weight: 640;&quot;&gt;return 0;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; font-size: 16px;&quot;&gt;&amp;nbsp;terminates the main() function and returns the value 0.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 23px; font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Compile and Execute C Program&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Let us see how to save the source code in a file, and how to compile and run it. Following are the simple steps −&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;list&quot; style=&quot;color: rgba(0, 0, 0, 0.87); font-size: 16px; margin-bottom: 0rem; margin-top: 0px; text-align: start;&quot;&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Open a text editor and add the above-mentioned code.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Save the file as&amp;nbsp;&lt;i&gt;hello.c&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Open a command prompt and go to the directory where you have saved the file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Type&amp;nbsp;&lt;i&gt;gcc hello.c&lt;/i&gt;&amp;nbsp;and press enter to compile your code.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;If there are no errors in your code, the command prompt will take you to the next line and would generate&amp;nbsp;&lt;i&gt;a.out&lt;/i&gt;&amp;nbsp;executable file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Now, type&amp;nbsp;&lt;i&gt;a.out&lt;/i&gt;&amp;nbsp;to execute your program.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 3px; background-repeat: no-repeat; background-size: initial; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;You will see the output&amp;nbsp;&lt;i&gt;&quot;Hello World&quot;&lt;/i&gt;&amp;nbsp;printed on the screen.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border-radius: 8px; color: rgba(0, 0, 0, 0.87); font-size: 15px; overflow-x: auto; padding: 15px; text-align: start;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;$ gcc hello.c
$ ./a.out
Hello, World!
&lt;/span&gt;&lt;/pre&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Make sure the gcc compiler is in your path and that you are running it in the directory containing the source file hello.c.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/c-environment-setup-local-environment.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Previous&lt;/a&gt;&lt;span style=&quot;font-size: large;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/basic-syntax.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/8882182075049240047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/structure-of-c-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8882182075049240047'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8882182075049240047'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/structure-of-c-program.html' title='Structure of C Program'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8K4kHhCvvzrNFfgZ8LMEkjNXHe9xZtjZu5wraNyAUpA_TJ_EQQa1rRt3eQ7wBezM9U_zvbTdT-1v10u2ycNg0DcWHag_O8VtamiAhoAlfZkAnfc2lF4gL1rXX9v3p3kMb5tiuqHZmYl3t/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-4662493444146870936</id><published>2021-09-22T00:55:00.008-07:00</published><updated>2021-09-22T01:26:45.206-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'> C - Environment Setup</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #797979; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;C - Environment Setup&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #797979; text-align: center;&quot;&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLVw2OJcYfbVAwz7punc2RSnHFjkCHB0oeX0jreXvre4vHroM59gSHbXMrcA1Xwy6p_rquNsxSe-6EJO3nb14RAjVRkDY0y5m34SPrudwD_KXL3aAxDnVJHQUi_oYSfh9h9HbWHg_kd7JQ/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Local Environment Setup&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;If you want to set up your environment for C programming language, you need the following two software tools available on your computer, (a) Text Editor and (b) The C Compiler.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Text Editor&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;This will be used to type your program. Examples of few a editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The name and version of text editors can vary on different operating systems. For example, Notepad will be used on Windows, and vim or vi can be used on windows as well as on Linux or UNIX.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The files you create with your editor are called the source files and they contain the program source codes. The source files for C programs are typically named with the extension &quot;&lt;span style=&quot;font-weight: 640;&quot;&gt;.c&lt;/span&gt;&quot;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Before starting your programming, make sure you have one text editor in place and you have enough experience to write a computer program, save it in a file, compile it and finally execute it.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The C Compiler&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The source code written in source file is the human readable source for your program. It needs to be &quot;compiled&quot;, into machine language so that your CPU can actually execute the program as per the instructions given.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The compiler compiles the source codes into final executable programs. The most frequently used and free available compiler is the GNU C/C++ compiler, otherwise you can have compilers either from HP or Solaris if you have the respective operating systems.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;The following section explains how to install GNU C/C++ compiler on various OS. We keep mentioning C/C++ together because GNU gcc compiler works for both C and C++ programming languages.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Installation on Windows&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;To install GCC on Windows, you need to install MinGW. To install MinGW, go to the MinGW homepage,&amp;nbsp;&lt;a href=&quot;http://www.mingw.org/&quot; rel=&quot;nofollow&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/link-icon.png&amp;quot;); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat; background-size: initial; color: #313131; cursor: pointer; padding-bottom: 2px; padding-right: 22px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;www.mingw.org&lt;/a&gt;, and follow the link to the MinGW download page. Download the latest version of the MinGW installation program, which should be named MinGW-&amp;lt;version&amp;gt;.exe.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;While installing Min GW, at a minimum, you must install gcc-core, gcc-g++, binutils, and the MinGW runtime, but you may wish to install more.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Add the bin subdirectory of your MinGW installation to your&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;PATH&lt;/span&gt;&amp;nbsp;environment variable, so that you can specify these tools on the command line by their simple names.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;After the installation is complete, you will be able to run gcc, g++, ar, ranlib, dlltool, and several other GNU tools from the Windows command line.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*********Stay Tuned for Upcoming Tutorials***********&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/programming-tutorial-zero-to-hero-what.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Previous&lt;/a&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/structure-of-c-program.html&quot; role=&quot;button&quot; style=&quot;font-size: medium; text-align: left;&quot;&gt;Next&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/4662493444146870936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/c-environment-setup-local-environment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4662493444146870936'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4662493444146870936'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/c-environment-setup-local-environment.html' title=' C - Environment Setup'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLVw2OJcYfbVAwz7punc2RSnHFjkCHB0oeX0jreXvre4vHroM59gSHbXMrcA1Xwy6p_rquNsxSe-6EJO3nb14RAjVRkDY0y5m34SPrudwD_KXL3aAxDnVJHQUi_oYSfh9h9HbWHg_kd7JQ/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-2856699838917989109</id><published>2021-09-21T23:32:00.018-07:00</published><updated>2021-09-22T01:04:23.770-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'> C Programming Tutorial Zero to Hero</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: inherit; font-size: 1.5rem; text-align: left;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;br /&gt;C Programming Tutorial Zero to Hero&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&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/AVvXsEjssuSSjWjeWrdOHJuCT36EZmBKqaoJaK0NsPeRGQR4pIj3lq3LkvSK8D5i9g1aW6WjGCyHJWoL3QR9SOa8Aa_mSpQxJ_SaXkxdnHKUxIBbMq9DfESOKKhE0HJaiqdi8jZIoUN3u9uoUw6y/s750/C-Programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;750&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjssuSSjWjeWrdOHJuCT36EZmBKqaoJaK0NsPeRGQR4pIj3lq3LkvSK8D5i9g1aW6WjGCyHJWoL3QR9SOa8Aa_mSpQxJ_SaXkxdnHKUxIBbMq9DfESOKKhE0HJaiqdi8jZIoUN3u9uoUw6y/s320/C-Programming.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #212529; font-size: 24px; text-align: left;&quot;&gt;What is C:&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;box-sizing: border-box; color: #212529; font-size: 18.6667px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C is one of the fastest programming language as it is close to low-level languages such as Assembly language. If you are already familiar with programming, then you must know the demand out there for a C programmer. Because C comes in handy in case of all the applications that require fast processing, such as games, or major parts of different operating systems.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #212529;&quot;&gt;&lt;app-adsense _nghost-serverapp-c29=&quot;&quot; adtype=&quot;ad&quot; style=&quot;box-sizing: border-box; font-size: 18.6667px;&quot;&gt;&lt;div _ngcontent-serverapp-c29=&quot;&quot; class=&quot;text-center&quot; style=&quot;background-color: white; box-sizing: border-box; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;div _ngcontent-serverapp-c29=&quot;&quot; class=&quot;text-center&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/app-adsense&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin: 25px 0px 9px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Benefits of C:&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C was developed in early&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;1970’s &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;Brian&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&amp;amp;R standard&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Arial, Verdana, Tahoma; font-size: 16px; text-align: justify;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C takes only significant CPU time for interpretation. That is why a lot Python libraries such as&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&amp;nbsp;NumPy&lt;/span&gt;,&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&amp;nbsp;pandas&lt;/span&gt;,&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&amp;nbsp;scikit-learn&lt;/span&gt;, etc. are built using C.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Being close to Machine language, some of its functions including direct access to machine level hardware APIs&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;It is a highly portable language&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Data structure and algorithm can be better implemented in C language.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C is being used to support other programming languages to enhance their efficiency.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;box-sizing: border-box; font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin: 25px 0px 9px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Scope:&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;ul style=&quot;box-sizing: border-box; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Windows, Linux, Mac all are mostly written in C.&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;Linux is written 97% using C&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C has also been used widely while creating iOS and Android kernels.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;MySQL database is written using C.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Ruby and Pearl are mostly written using C.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Most part of Apache and NGINX is written using C.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Embedded Systems are created using C&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;box-sizing: border-box; font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin: 25px 0px 9px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Control:&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C gives most of the control in the hand of users. Things like memory allocation and manipulation are totally in the hands of the programmer. Being a flexible language, it provides more access to the programmer because of which it is more efficient.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;All of these reasons make C one of the widely used Programming language having special respect in the heart of programmers.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-weight: 400; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;C Programs&lt;/span&gt;&lt;/h2&gt;&lt;h4 style=&quot;box-sizing: border-box; font-weight: 500; line-height: 1.2; margin: 25px 0px 9px;&quot;&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A C program can vary from 3 lines to millions of lines and it should be written into one or more text files with extension&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;&quot;.c&quot;&lt;/span&gt;; for example,&amp;nbsp;&lt;i&gt;hello.c&lt;/i&gt;. You can use&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;&quot;vi&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;font-weight: 640;&quot;&gt;&quot;vim&quot;&lt;/span&gt;&amp;nbsp;or any other text editor to write your C program into a file.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;This tutorial assumes that you know how to edit a text file and how to write source code inside a program file.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: black; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*********Stay Tuned for Upcoming Tutorials***********&lt;/span&gt;&lt;/p&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; 
&lt;a class=&quot;btn btn-outline-danger&quot; href=&quot;https://knowsprogramming.blogspot.com/2021/09/c-environment-setup-local-environment.html&quot; role=&quot;button&quot;&gt;Next&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/2856699838917989109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/programming-tutorial-zero-to-hero-what.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/2856699838917989109'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/2856699838917989109'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2021/09/programming-tutorial-zero-to-hero-what.html' title=' C Programming Tutorial Zero to Hero'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjssuSSjWjeWrdOHJuCT36EZmBKqaoJaK0NsPeRGQR4pIj3lq3LkvSK8D5i9g1aW6WjGCyHJWoL3QR9SOa8Aa_mSpQxJ_SaXkxdnHKUxIBbMq9DfESOKKhE0HJaiqdi8jZIoUN3u9uoUw6y/s72-c/C-Programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-5664761105893324865</id><published>2020-12-30T03:28:00.003-08:00</published><updated>2020-12-30T03:31:03.709-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C language"/><title type='text'>Commonly asked C Programming Interview Questions</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;Commonly asked C #Programming Interview Questions&lt;/b&gt;&lt;/span&gt;&lt;/p&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/AVvXsEiY1KGxYp76Yvw61Q5HfGytFX4hwOLm0XlyGG3u4MFbQFnwVWH3N6STcTeuBEh800ugQVmKalHMhlKu4CTqm8REovHXLLOmrmYbVIKxc7u8JIr3VS4-_IEUUVG16mvX4tuJxxAmnftHa0dm/s225/download.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;225&quot; data-original-width=&quot;225&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY1KGxYp76Yvw61Q5HfGytFX4hwOLm0XlyGG3u4MFbQFnwVWH3N6STcTeuBEh800ugQVmKalHMhlKu4CTqm8REovHXLLOmrmYbVIKxc7u8JIr3VS4-_IEUUVG16mvX4tuJxxAmnftHa0dm/w200-h200/download.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;1] WHAT IS C LANGUAGE?&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;C is a mid-level and procedural programming language. The procedural programming language is also known as the structure programming language is a technique in which large programs are broken down into smaller modules. and each module uses structured code.&lt;/span&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;span style=&quot;color: #cc0000; font-family: arial;&quot;&gt;&lt;b&gt;2] WHAT IS NULL POINTER?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Null is used to indicate that the pointer doesn&#39;t point to avoid location. Ideally, we should initialize pointers as Null if we don&#39;t known their value at the time of declaration.&lt;/span&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;span style=&quot;color: #cc0000; font-family: arial;&quot;&gt;&lt;b&gt;3] WHAT IS MEMORY LEAK? WHY IT SHOULD BE AVOIDED&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Memory leak occurs when programmers create a memory in heap and forget to delete it. Memory leak are particularly serious issues for programs like daemons and servers which by definition never terminate.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: arial;&quot;&gt;&lt;b&gt;4] CAN PROGRAM BE COMPILED WITHOUT MANI() FUNCTION?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Yes. it can be but cannot be executed, as the execution require main() function definition.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;background-color: #04ff00; font-family: arial;&quot;&gt;Next Part Coming Soon... stay tune&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/5664761105893324865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/12/commonly-asked-c-programming-interview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/5664761105893324865'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/5664761105893324865'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/12/commonly-asked-c-programming-interview.html' title='Commonly asked C Programming Interview Questions'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY1KGxYp76Yvw61Q5HfGytFX4hwOLm0XlyGG3u4MFbQFnwVWH3N6STcTeuBEh800ugQVmKalHMhlKu4CTqm8REovHXLLOmrmYbVIKxc7u8JIr3VS4-_IEUUVG16mvX4tuJxxAmnftHa0dm/s72-w200-h200-c/download.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-3752681526511616617</id><published>2020-08-27T00:57:00.003-07:00</published><updated>2020-08-27T01:03:41.507-07:00</updated><title type='text'>Pattern</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlent2sWK13wycvSpq_kQRPCVhnScs1QWZms9BgOyCXRRgqW5ZH7vduNYkpKeqNzaIaEZdNOK1g6935Hj7Go-1wXLezXcIkiyJdN0n5A4gf7ZcScafqIPSBO-xxzVaBrdJwjcfVnTZnadl/s1600/skhf.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;150&quot; data-original-width=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlent2sWK13wycvSpq_kQRPCVhnScs1QWZms9BgOyCXRRgqW5ZH7vduNYkpKeqNzaIaEZdNOK1g6935Hj7Go-1wXLezXcIkiyJdN0n5A4gf7ZcScafqIPSBO-xxzVaBrdJwjcfVnTZnadl/s1600/skhf.jpg&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Code:&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int n, x, y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;Enter any number: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if (n % 2 == 0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; n = n + 1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for (y = 3 * n / 2; y &amp;gt;= -3 * (n / 2); y--)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (x = -3 * (n / 2); x &amp;lt;= 3 * (n / 2); x++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((x &amp;gt;= -1 * n / 2 &amp;amp;&amp;amp; x &amp;lt;= n / 2) || (y &amp;gt;= -1 * n / 2 &amp;amp;&amp;amp; y &amp;lt;= n / 2))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (x == y || x == -y)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ((y &amp;lt;= 0 || y &amp;gt;= n / 2) &amp;amp;&amp;amp; (x + y == n - 1))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ((y &amp;gt;= 0 || y &amp;lt;= -n / 2) &amp;amp;&amp;amp; (x + y == 1 - n))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ((x &amp;lt;= 0 || x &amp;gt;= n / 2) &amp;amp;&amp;amp; (x - y == n - 1))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ((x &amp;gt;= 0 || x &amp;lt;= -n / 2) &amp;amp;&amp;amp; (x - y == 1 - n))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;&amp;nbsp; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (x + y == (n - 1) * 2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (x + y == (1 - n) * 2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (x - y == (n - 1) * 2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (x - y == (1 - n) * 2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;@ &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;&amp;nbsp; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/3752681526511616617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/08/pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/3752681526511616617'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/3752681526511616617'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/08/pattern.html' title='Pattern'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlent2sWK13wycvSpq_kQRPCVhnScs1QWZms9BgOyCXRRgqW5ZH7vduNYkpKeqNzaIaEZdNOK1g6935Hj7Go-1wXLezXcIkiyJdN0n5A4gf7ZcScafqIPSBO-xxzVaBrdJwjcfVnTZnadl/s72-c/skhf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-8108816045506906459</id><published>2020-06-15T20:37:00.005-07:00</published><updated>2020-06-15T20:37:43.651-07:00</updated><title type='text'>Left and Right Arrows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 24px; font-weight: 500; line-height: 1.1; margin: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;#4&amp;nbsp;&lt;/span&gt;Left and Right Arrows&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Input :7 &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;(Must be odd)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSn6dhRPvVpHtbcTGbPhTbKHbFySvv1tSTmj_qzmIXtBVpFXASg7zJgZ3DKfXsmymzSswt5CZsGkTO9Z475jVkCxtjk8qHHCRXvzryyBQOvKcSMhaQ1NloHbUflfa8TtuPg3iA_eKR7SEc/s1600/119-1193575_arrow-left-right-png.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;765&quot; data-original-width=&quot;1012&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSn6dhRPvVpHtbcTGbPhTbKHbFySvv1tSTmj_qzmIXtBVpFXASg7zJgZ3DKfXsmymzSswt5CZsGkTO9Z475jVkCxtjk8qHHCRXvzryyBQOvKcSMhaQ1NloHbUflfa8TtuPg3iA_eKR7SEc/s320/119-1193575_arrow-left-right-png.png&quot; width=&quot;320&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;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;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;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;b&gt;Program solution for Left Right Arrow&amp;nbsp;&lt;/b&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;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
int main()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
int i, j, n;&lt;/div&gt;
&lt;div&gt;
printf(&quot;Enter Number: &quot;);&lt;/div&gt;
&lt;div&gt;
scanf(&quot;%d&quot;, &amp;amp;n);&amp;nbsp; // ‘n’ must be odd&lt;/div&gt;
&lt;div&gt;
int num1 = n / 2 * 3;&lt;/div&gt;
&lt;div&gt;
// right arrow&lt;/div&gt;
&lt;div&gt;
printf(&quot;Right Arrow\n&quot;);&lt;/div&gt;
&lt;div&gt;
for(i = 0; i &amp;lt; n; i++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
for(j = 0; j &amp;lt; n; j++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
// center horizontal, upper right diagonal, bottom right diagonal&lt;/div&gt;
&lt;div&gt;
if(i == n / 2 || j - i == n / 2 || i + j == num1)&lt;/div&gt;
&lt;div&gt;
printf(&quot;*&quot;);&lt;/div&gt;
&lt;div&gt;
else&lt;/div&gt;
&lt;div&gt;
printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
// left arrow&lt;/div&gt;
&lt;div&gt;
printf(&quot;Left Arrow\n&quot;);&lt;/div&gt;
&lt;div&gt;
for(i = 0; i &amp;lt; n; i++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
for(j = 0; j &amp;lt; n; j++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
// center horizontal, bottom left diagonal, upper left diagonal&lt;/div&gt;
&lt;div&gt;
if(i == n / 2 || i - j == n / 2 || i + j == n / 2)&lt;/div&gt;
&lt;div&gt;
printf(&quot;*&quot;);&lt;/div&gt;
&lt;div&gt;
else&lt;/div&gt;
&lt;div&gt;
printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
return 0;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/8108816045506906459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/left-and-right-arrows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8108816045506906459'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/8108816045506906459'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/left-and-right-arrows.html' title='Left and Right Arrows'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSn6dhRPvVpHtbcTGbPhTbKHbFySvv1tSTmj_qzmIXtBVpFXASg7zJgZ3DKfXsmymzSswt5CZsGkTO9Z475jVkCxtjk8qHHCRXvzryyBQOvKcSMhaQ1NloHbUflfa8TtuPg3iA_eKR7SEc/s72-c/119-1193575_arrow-left-right-png.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-1419113182527762206</id><published>2020-06-10T05:17:00.003-07:00</published><updated>2020-08-27T01:05:42.307-07:00</updated><title type='text'>Diagonal &amp; Sides of a Rhombus/Diamond</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 24px; font-weight: 500; line-height: 1.1; margin: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;#3 Diagonal &amp;amp; Sides of a Rhombus/Diamond&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Input: 9&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;nunito sans&amp;quot; , sans-serif; font-size: 16px; font-weight: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;(input should be an odd number only, else the desired output will not be obtained)&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: red;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&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/AVvXsEj-AZTyXygqvChwsnKLui2A0YNA_4pvqXY_yyh8CatlFRjWt9GdJCCv57xTlE9yFa6tg74f47pfMMpNRvWThvL51HeC9e81rhQbW5lp9BVRH1jaeWSwS7CgleosbrL3YXwzzkbe3sgTgafg/s1600/3dhf.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;150&quot; data-original-width=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-AZTyXygqvChwsnKLui2A0YNA_4pvqXY_yyh8CatlFRjWt9GdJCCv57xTlE9yFa6tg74f47pfMMpNRvWThvL51HeC9e81rhQbW5lp9BVRH1jaeWSwS7CgleosbrL3YXwzzkbe3sgTgafg/s1600/3dhf.jpg&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&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Diagonal &amp;amp; Sides of a Rhombus/Diamond :&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;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
int main()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
int i, j, n;&lt;/div&gt;
&lt;div&gt;
printf(&quot;Enter Number : &quot;);&lt;/div&gt;
&lt;div&gt;
scanf(&quot;%d&quot;, &amp;amp;n);&amp;nbsp; // ‘n’ must be odd&lt;/div&gt;
&lt;div&gt;
int num1 = n / 2 * 3;&lt;/div&gt;
&lt;div&gt;
for(i = 0; i &amp;lt; n; i++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
for(j = 0; j &amp;lt; n; j++)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
// center horizontal, center vertical, upper left diagonal, bottom left diagonal, upper right diagonal, bottom right diagonal&lt;/div&gt;
&lt;div&gt;
if(i == n / 2 || j == n / 2 || i + j == n / 2 || i - j == n / 2 || j - i == n / 2 || i + j == num1)&lt;/div&gt;
&lt;div&gt;
printf(&quot;*&quot;);&lt;/div&gt;
&lt;div&gt;
else&lt;/div&gt;
&lt;div&gt;
printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
return 0;&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://knowsprogramming.blogspot.com/feeds/1419113182527762206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/diagonal-sides-of-rhombusdiamond.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/1419113182527762206'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/1419113182527762206'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/diagonal-sides-of-rhombusdiamond.html' title='Diagonal &amp; Sides of a Rhombus/Diamond'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-AZTyXygqvChwsnKLui2A0YNA_4pvqXY_yyh8CatlFRjWt9GdJCCv57xTlE9yFa6tg74f47pfMMpNRvWThvL51HeC9e81rhQbW5lp9BVRH1jaeWSwS7CgleosbrL3YXwzzkbe3sgTgafg/s72-c/3dhf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-4385197136952478931</id><published>2020-06-10T02:26:00.005-07:00</published><updated>2020-06-10T02:26:44.893-07:00</updated><title type='text'>Diagonal &amp; Sides of a Rectangle</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 24px; font-weight: 500; line-height: 1.1; margin: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;#2 Diagonal &amp;amp; Sides of a Rectangle&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;Input: 7&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; font-weight: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;(input should be an odd number only, else the desired output will not be obtained)&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&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/AVvXsEidURKGscQjH44SWPzrT0siBiesof0dhhbfvQqEpzozhtnVxjHGHKoxMB0F853_0C8jChX8pfgXeINxzN7hEqpoFNY78E6TCedPM9CRFgqxi6tLxdNVbowbCGGTtHJobImDKkyMR5sWEywF/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;462&quot; data-original-width=&quot;206&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidURKGscQjH44SWPzrT0siBiesof0dhhbfvQqEpzozhtnVxjHGHKoxMB0F853_0C8jChX8pfgXeINxzN7hEqpoFNY78E6TCedPM9CRFgqxi6tLxdNVbowbCGGTtHJobImDKkyMR5sWEywF/s320/2.jpg&quot; width=&quot;142&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&lt;b&gt;Program For Diagonal &amp;amp; Slides of a Rectangle:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: &amp;quot;Nunito Sans&amp;quot;, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;int main()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; int i, j, n;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;Enter number:&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;n);&amp;nbsp; // &#39;n&#39; must be odd&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; n; i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j = 0; j &amp;lt; n; j++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // left diagonal, right diagonal, top horizontal, bottom horizontal, left vertical, right vertical&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i == j || i + j == n - 1 || i == 0 || i == n - 1 || j == 0 || j == n - 1)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Nunito Sans, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: red; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/4385197136952478931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/diagonal-sides-of-rectangle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4385197136952478931'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/4385197136952478931'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/diagonal-sides-of-rectangle.html' title='Diagonal &amp; Sides of a Rectangle'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidURKGscQjH44SWPzrT0siBiesof0dhhbfvQqEpzozhtnVxjHGHKoxMB0F853_0C8jChX8pfgXeINxzN7hEqpoFNY78E6TCedPM9CRFgqxi6tLxdNVbowbCGGTtHJobImDKkyMR5sWEywF/s72-c/2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1375943854469027806.post-2313621843393396342</id><published>2020-06-09T23:37:00.003-07:00</published><updated>2020-06-09T23:37:19.127-07:00</updated><title type='text'>Butterfly Pattern Printing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
#1&amp;nbsp;Butterfly Pattern Printing&lt;/h2&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Input : 5&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Output:&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicRxSGeryMT4BHJ8B-VLsge2KPszvFkFQOBVhRbNjMkxGeN9CYv3y-KqKjSI5GyQBQaRYrTZu2hYz5uedEedh4T35P5a2ukwLxcE07Gi6UP0CNuxbkIDhdLxcTcTZO1QMi6GDFYptpE4NL/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Butterfly Pattern Printing&quot; border=&quot;0&quot; data-original-height=&quot;290&quot; data-original-width=&quot;240&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicRxSGeryMT4BHJ8B-VLsge2KPszvFkFQOBVhRbNjMkxGeN9CYv3y-KqKjSI5GyQBQaRYrTZu2hYz5uedEedh4T35P5a2ukwLxcE07Gi6UP0CNuxbkIDhdLxcTcTZO1QMi6GDFYptpE4NL/s320/1.jpg&quot; title=&quot;&quot; width=&quot;264&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Program For&amp;nbsp;Butterfly Pattern Printing:&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i, j, n;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;Enter Number: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;n);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // upper half of the pattern&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j = 0; j &amp;lt; (2 * n); j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i &amp;gt;= j)&amp;nbsp; // upper left triangle&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i &amp;gt;= (2 * n - 1) - j) // upper right triangle&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // bottom half of the pattern&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j = 0; j &amp;lt; (2 * n); j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i + j &amp;lt;= n - 1) // bottom left triangle&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if((i + n) &amp;lt;= j) // bottom right triangle&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://knowsprogramming.blogspot.com/feeds/2313621843393396342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/butterfly-pattern-printing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/2313621843393396342'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1375943854469027806/posts/default/2313621843393396342'/><link rel='alternate' type='text/html' href='https://knowsprogramming.blogspot.com/2020/06/butterfly-pattern-printing.html' title='Butterfly Pattern Printing'/><author><name>jobsarea</name><uri>http://www.blogger.com/profile/15695901481190174971</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJE0ejvbx0gYMR_K4d3Z5VtOJh8zJ8FnSRcUwx4g4ytuqopEyWUmr9tolJA3BLNQf9vFuZR3fkxphKHN45w1g5psRd44SzFxF0K_aesoX2Z9krgYEpdHBYTcDtrlAQw/s113/123.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicRxSGeryMT4BHJ8B-VLsge2KPszvFkFQOBVhRbNjMkxGeN9CYv3y-KqKjSI5GyQBQaRYrTZu2hYz5uedEedh4T35P5a2ukwLxcE07Gi6UP0CNuxbkIDhdLxcTcTZO1QMi6GDFYptpE4NL/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>