<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>c programming Archives -</title>
	<atom:link href="https://mitindia.in/tag/c-programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/c-programming/</link>
	<description></description>
	<lastBuildDate>Fri, 08 Jul 2016 05:47:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>c programming Archives -</title>
	<link>https://mitindia.in/tag/c-programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>C Programming</title>
		<link>https://mitindia.in/c-programming/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 06:41:31 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[c programming]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=238</guid>

					<description><![CDATA[<p>Brief introduction to C Language:-  Languages like B, Combined Programming Language (CPL) and Basic CPL were used popularly. The B language used earlier was added with basic functionality of BCPL to create C language. Dennis Ritchie developed C in 1972 while working with Bell Laboratories. C was developed on unix operating system. UNIX operating system [&#8230;]</p>
<p>The post <a href="https://mitindia.in/c-programming/">C Programming</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span style="color: #ff0000;">Brief introduction to C Language:- </span></h2>
<p>Languages like B, Combined Programming Language (CPL) and Basic CPL were used popularly.</p>
<p>The B language used earlier was added with basic functionality of BCPL to create C language.</p>
<p><i>Dennis Ritchie</i> developed C in 1972 while working with Bell Laboratories.<br />
C was developed on unix operating system.</p>
<div>UNIX operating system was re-written using the C language.</div>
<div>
<div>When UNIX was re-written, only a part of the original assembly language was retained.</div>
<div>Most universities used UNIX and this helped make C a popular language among students.</div>
<div>To avoid compatibility problems arising from the variations of C language developed by different companies, ANSI set the guidelines for standardising C. This is  called ANSI C.</div>
</div>
<div></div>
<div><span style="color: #ff0000;"><strong>Applications of C Language:-</strong></span></div>
<div>
<ul>
<li>The most popular example of C application is the re -creation of UNIX operating system.</li>
<li>C is used to develop compilers, interpreters, graphic and general utilities.</li>
<li>C has been used in the development of various databases, word processors and spread sheets.</li>
<li>Power and flexibility has prompted the use of C language in the development of custom – made applications like railway ticket vending machines and applications in the banking and insurance sector.</li>
</ul>
<div>There are four files associated when a C program is compiled<br />
<span style="color: #ff0000;">1. <b>Source code</b></span> – with ‘.c’ as the extension. It is the file where the program instructions are written.<br />
<span style="color: #ff0000;">2. <b>Header File</b> </span>– contains the declaration of functions and the pre-processor commands. It has ‘.h’ as its extension.<br />
<span style="color: #ff0000;">3. <b>Object Files</b></span> – these are the files created by the compiler and have a extension either as ‘.o’ or ‘.obj’.<br />
<span style="color: #ff0000;">4. <b>Binary Executables</b> </span>– output from the linking process. The extension of these files is ‘.exe’.The linker is a program that collects all the related object files and creates an executable file.</p>
<div><span style="color: #ff0000;">Constants:</span> A quantity or a value that does not change is called a constant.<br />
There are two types of constants.</p>
<ul>
<li>Integer</li>
<li>Character</li>
</ul>
<p>Rules for creating an Integer constants</p>
<ul>
<li>It needs at least one digit.</li>
<li>No decimal point is present in an Integer constant</li>
<li>It can be a positive or negative number.</li>
<li>It does not have commas or blanks</li>
<li>+31, 56, -75 are instances of Integer constants</li>
</ul>
<p><span style="color: #ff0000;"> Variable</span>:-A value that can vary or can be altered during the execution of the program or instruction is called a variable.</p>
<p><span style="color: #ff0000;">Points to remember when creating a variable: </span></p>
<ul>
<li>The length of the variable name should not exceed more than 8 characters.</li>
<li>The variable name can be made up of A- Z, a-z, 0-9 or underscores ( _ ), and combination of all these can also be used to create a variable name.</li>
<li>Precaution should be taken that variable name must begin with an alphabet.</li>
<li>Special characters (%, # ), commas and blanks are not allowed in variable names.</li>
</ul>
<p>Syntax to create a variable : int a, b, c; [three variables of integer type]</p>
<h4><span style="color: #ff0000;">Data Types in C Language:</span></h4>
</div>
</div>
<div>
<ul>
<li>int [Integer]</li>
<li>char [character or string]</li>
<li>float [floating point numbers]</li>
<li>double [double values]</li>
</ul>
<div><span style="color: #ff0000;">Operators</span> :- C has a powerful set of operators, Combination of operators and operands in a statement is called an  expression.</div>
<div>Operands can be either variables or constants.</div>
<div>An expression must result in a value.</div>
<div></div>
<div>
<div><span style="color: #ff0000;">Types of operators are :</span></div>
<div>
<ul>
<li> Arithmetic</li>
<li> Assignment</li>
<li> Relational</li>
<li> Logical</li>
</ul>
</div>
</div>
<div>
<ul>
<li>Arithmetic operators are the basic mathematical operators used for addition, subtraction, multiplication or division.</li>
<li>An order of precedence is followed when these operators are applied together in an expression.</li>
<li>sizeof operator returns the size occupied by the variable.</li>
</ul>
</div>
</div>
<div></div>
<div>getChar() and putChar():- getchar() function reads a character entered from the keyboard.</div>
<div>The function automatically echoes the character entered.</div>
<div>Tab or Esc keys are considered to be valid inputs using this structure.</div>
<div>putchar() function prints the argument passed on to the screen.</div>
<div></div>
<div><span style="color: #ff0000;">Operator Precedence:-</span></div>
<div><b>Name                                Operator</b></div>
<div>
<table border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="322" />
<col width="185" /></colgroup>
<tbody>
<tr>
<td class="oa1" width="322" height="30">
<div>Parentheses</div>
</td>
<td class="oa2" width="185">
<div>()</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="29">
<div>Increment/Decrement</div>
</td>
<td class="oa2" width="185">
<div>++/&#8211;</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="59">
<div>Multiplication</div>
<div>Division</div>
<div>Modulus</div>
</td>
<td class="oa2" width="185">
<div>*</div>
<div>/</div>
<div>%</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="43">
<div>Addition</div>
<div>Subtraction</div>
</td>
<td class="oa2" width="185">
<div>+</div>
<div>&#8211;</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="113">
<div>Less than</div>
<div>Less than or equal to</div>
<div>Greater than</div>
<div>Greater than or equal to</div>
</td>
<td class="oa2" width="185">
<div>&lt;</div>
<div>&lt;=</div>
<div>&gt;=</div>
<div>&gt;</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="43">
<div>Equal to</div>
<div>Not equal to</div>
</td>
<td class="oa2" width="185">
<div>==</div>
<div>!=</div>
</td>
</tr>
<tr>
<td class="oa1" width="322" height="43">
<div>Logical AND</div>
<div>Logical OR</div>
<div>Logical !</div>
</td>
<td class="oa2" width="185">
<div>&amp;&amp;</div>
<div>||</div>
<div>!</div>
</td>
</tr>
<tr>
<td class="oa3" width="322" height="43">
<div>Assignment Operator</div>
</td>
<td class="oa4" width="185">
<div>= += *= /= -=</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fc-programming%2F&amp;linkname=C%20Programming" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fc-programming%2F&amp;linkname=C%20Programming" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fc-programming%2F&#038;title=C%20Programming" data-a2a-url="https://mitindia.in/c-programming/" data-a2a-title="C Programming"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/c-programming/">C Programming</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
