tag:blogger.com,1999:blog-78204682646532021072024-02-07T09:50:46.869+06:00 C and C++ ProgrammingOnline C and C++ Programming tutorialsUnknownnoreply@blogger.comBlogger20125tag:blogger.com,1999:blog-7820468264653202107.post-18956256084010946532012-11-19T06:32:00.000+06:002015-10-13T16:09:00.772+06:00Getting Started With C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLawN5hXJGsIWcaNYhJFjYxaJ3X1_byt8wip0nOOhM0AMf6RWIOayToim4rbrwJoK3FZiLkcAEDYh8uykv8sdVAq1pwT5cjyr8617OULemOU4cgbG1TCT8a6o8vm6W3wzkCJhC2_DklkU/s1600/C+and+C%252B%252B.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLawN5hXJGsIWcaNYhJFjYxaJ3X1_byt8wip0nOOhM0AMf6RWIOayToim4rbrwJoK3FZiLkcAEDYh8uykv8sdVAq1pwT5cjyr8617OULemOU4cgbG1TCT8a6o8vm6W3wzkCJhC2_DklkU/s1600/C+and+C%252B%252B.jpg" /></a></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--></span></b><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times;">Welcome to this blog which is about C and C++ programming language. This
blog will discuss about the popular C and C++ programming language from
beginning to professional level. Visiting step by step through this blog, you
will able to know how to create professional software with this high-level
language. So, no more<b> </b>talking but before starting, you need to be
familiar with the background of C and C++ programming language. Below section
will show the history and the necessary discussion before starting C and C++<b>
</b>language<b>.</b></span><br />
<br />
<div style="text-align: left;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">
</span></b></div>
<div style="text-align: left;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Programming
Language </span></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Language
is used to communicate with each other. But programming language is specially
used for computer to communicate with its user. As <span style="mso-bidi-font-weight: bold;">computer understands nothing except 0 and 1</span>, its user should build
an instruction set which is combination with 0 and 1 named as machine language.
So a compiler is necessary to interpret user’s symbolic word to computer
readable instruction set. As a demand, programming language comes out.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">From the above discussion, <span style="mso-bidi-font-style: italic;">Programming Language is defined as<i> an
instruction set, word or code which is readable to the computer and used to
solve any practical problem by the computer</i></span>.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Types of
programming language</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><br />
</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Programming languages are divided into two types…</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l8 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b style="mso-bidi-font-weight: normal;">Low-level
language</b>: This is directly readable by the computer. Such as machine
language and assembly language.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l7 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">High-level
language: </span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">An
interpreter is necessary for these languages to translate human readable
code to machine readable code. C, C++, lava, C#, Visual Basic etc are the
example of high-level language.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span>What are C
and C++?</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l12 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">C which was created by Dennis Ritchie at Bell
Laboratories at 1972 is one of the most popular high-level computer
languages. It is treated as a God language of computer programming.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l5 level1 lfo4; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> C++, an extension of C, was developed by
Bjarne Stroustrup in the early 1980s to overcome the limitation of C. C++
contains all the functionality of C language with some extra features
including object-oriented capabilities discussed later in details in this
blog. Today, most of the general-purpose operating system like windows is
written in C or C++ language.<span style="mso-spacerun: yes;"> </span></span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span><b style="mso-bidi-font-weight: normal;"><span style="mso-spacerun: yes;"> </span></b></span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Advantages
of C and C++ language </span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l13 level1 lfo5; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Easy to learn than other high-level
programming language.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l10 level1 lfo6; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Platform independent language.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l4 level1 lfo7; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Easy to control both hardware and software.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo8; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Both modular and object-oriented programming
capability.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l6 level1 lfo9; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Operating system programming capability. </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l11 level1 lfo10; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> Capable of programming both
microcontroller and microprocessors. </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l2 level1 lfo11; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">The best hardware friendly programming
language. </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l1 level1 lfo12; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> More Speedy.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">For the above functionalists, C
and C++ are the most popular modern language.</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Programmer
view on C and C++</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><br />
</span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">There are a lot of computer </span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">programming</span> languages. All of these, C/C++ provides easy syntax and functionality. So,
at the beginning most of the programmers suggest to start with C and C++
programming. I also started my programming concept with this language and
it is one of my favorite languages. I think you are lucky if it is your
starting point in programming language.<span style="mso-spacerun: yes;"> </span></span><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Prerequisites
to learn C and C++ </span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l14 level1 lfo13; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-align: justify;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Educational Quality:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> No specific certificate is necessary. Anyone
who is eligible to read this tutorial is able to learn C and C++.</span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l9 level1 lfo14; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-align: justify;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Operating
System Quality:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> Some basic knowledge about
windows operating is suggested but not so necessary for this tutorial.
Playing with C and C++ anyone can be familiar with the operating
system.<span style="mso-spacerun: yes;"> </span></span></li>
</ul>
<ul style="text-align: left;" type="disc">
<li class="MsoNormal" style="line-height: normal; mso-list: l3 level1 lfo15; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-align: justify;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Necessary Software:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> A
C++ compiler and an IDE (Integrated Development Environment) are strongly
necessary. There are a lot of IDEs to edit and compile program but among
these we will use a <a href="http://sourceforge.net/projects/turbocforwindows-9/">Turbo C++ 4.0</a> for windows operating system. Download Turbo C++ 4.0 or 4.5 and start coding.</span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Now you are
ready to start first program in C and C++ programming. Open your IDE (Turbo C++ 4.0) and create a new file named first.cpp. Every C and C++ should have .cpp extension to indicate that it is a C and C++ file. Do the following code and run the program with <b>Ctrl+F9</b> key or <b>Run> Run</b>. If everything is OK, you will get the below output.</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">First program in C and C++</span></b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">#include<stdio.h><br />#include<conio.h><br /><br />void main()<br />{<br /> clrscr();<br /> printf("Welcome to C and C++ programming.");<br /> getch();<br />}</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Program Output</span></b></span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi59igcpVDxoY0-KIbe6zR5VtDP6fhgPs7T6MvG1FF-tao42Tql_PiRM8JJSX3yV8dB_x_1ZA0xa4Tf3Z8KRV1z130oWf8xBg9nXDKkwj2TYErxym7JnJsdyUmVUtzBK6E_CXJLHq-5PCk/s1600/first+program.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="92" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi59igcpVDxoY0-KIbe6zR5VtDP6fhgPs7T6MvG1FF-tao42Tql_PiRM8JJSX3yV8dB_x_1ZA0xa4Tf3Z8KRV1z130oWf8xBg9nXDKkwj2TYErxym7JnJsdyUmVUtzBK6E_CXJLHq-5PCk/s320/first+program.jpg" width="320" /></a></span></b></div>
<br />
<br /></div>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]--></div>
Unknownnoreply@blogger.com71tag:blogger.com,1999:blog-7820468264653202107.post-23342311213005922632011-09-04T04:00:00.000+06:002015-10-10T15:59:57.963+06:00Finding Maximum Logical Drives with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Times,"Times New Roman",serif;">
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link> <m:smallfrac m:val="off"> <m:dispdef> <m:lmargin m:val="0"> <m:rmargin m:val="0"> <m:defjc m:val="centerGroup"> <m:wrapindent m:val="1440"> <m:intlim m:val="subSup"> <m:narylim m:val="undOvr"> </m:narylim></m:intlim> </m:wrapindent><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-520092929 1073786111 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style></m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac><span style="font-size: 12pt; line-height: 115%;"><span style="font-family: Times,"Times New Roman",serif;"></span><o:p></o:p></span></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAFLPmqyXnf3b4zT_R9xsEqnyBPSoqjRfwUdnYNAlJG0aW_JgXmAJKfkbXL9PglRrGW7AP6gxXyX8Sq9a-p6ouJtNA86f64XYPjnSimM8rW4jA1keeuwBtMp4MoyacZ5fs90qGgSdg-Ho/s1600/Disk+Drive.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAFLPmqyXnf3b4zT_R9xsEqnyBPSoqjRfwUdnYNAlJG0aW_JgXmAJKfkbXL9PglRrGW7AP6gxXyX8Sq9a-p6ouJtNA86f64XYPjnSimM8rW4jA1keeuwBtMp4MoyacZ5fs90qGgSdg-Ho/s200/Disk+Drive.jpg" width="200" /></a></div>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">This article will show how to know the <span style="mso-bidi-font-weight: bold;">current drive’s name<b> </b>and the maximum logical drives</span> that
your system supports with C and C++. The <b>getdisk ()</b> <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a>
is used to show the current drive name and the<b> setdisk ()</b> <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function
</a>is used to know the maximum logical drives of any system. The programming code to find Maximum Logical Drives with
C and C++ is given below.</span><br />
<br />
<br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">#include<stdio.h></span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">#include<conio.h></span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">#include<dir.h></span><br />
<br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">void main()</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">{</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr();</a></span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> int disk, maxdrive;</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> disk=<b>getdisk()</b>+'A';</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> maxdrive=<b>setdisk(2)</b>;</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> printf("<i>Current drive is : %c\n",disk</i>);</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> printf("<i>Maximum logical drive is:%d\n",maxdrive</i>);</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch()</a>;</span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">}</span><br />
<br /></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<b><span style="font-size: 16pt; line-height: 115%;">Output </span></b></div>
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigwvjP4E-Ex7JQcM6cC8cbGZiYIMOEHz05aQ4gqdILxjWiKiW2Yn3Cr_OiBoaqQ1nbGdlMVRACkZhIqgaJRWvt-6ijvnwL-Ja7O3aDvquDduGfOWivof0ImDYSAQconyz8TPWi_XYb7ls/s1600/all.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigwvjP4E-Ex7JQcM6cC8cbGZiYIMOEHz05aQ4gqdILxjWiKiW2Yn3Cr_OiBoaqQ1nbGdlMVRACkZhIqgaJRWvt-6ijvnwL-Ja7O3aDvquDduGfOWivof0ImDYSAQconyz8TPWi_XYb7ls/s320/all.JPG" width="320" /></a></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<b><u><span style="color: blue; font-size: 16pt; line-height: 115%;"><br />
</span></u></b></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<b><u><span style="color: blue; font-size: 16pt; line-height: 115%;"><o:p></o:p></span></u></b></div>
</div>
Unknownnoreply@blogger.com17tag:blogger.com,1999:blog-7820468264653202107.post-37107974322844341302011-08-31T00:44:00.000+06:002015-10-10T16:42:19.865+06:00Two Dimensional Array Program with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Times,"Times New Roman",serif;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4Xomc8WkjbWKiOHVGFfstXLvuipY3cy0_rN1hxZHp_qRGQ0dw2xPzb_c4EAE4gfkIfYKVaxzhsPLK6pPZuGyH0C5WqDmR64nyOxEcZYM2Z-IJAEKOoc626keN81iPqIJ2JEeRKjAAzs/s1600/Two+Dimensional+array.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4Xomc8WkjbWKiOHVGFfstXLvuipY3cy0_rN1hxZHp_qRGQ0dw2xPzb_c4EAE4gfkIfYKVaxzhsPLK6pPZuGyH0C5WqDmR64nyOxEcZYM2Z-IJAEKOoc626keN81iPqIJ2JEeRKjAAzs/s1600/Two+Dimensional+array.png" /></a></div>
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link> <span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%; mso-bidi-font-family: Times; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;">This article will show how
to find boundary elements and higher and lower level elements of a matrix or a two
dimensional array with C and C++ program. The following program will first take
user inputs to build a two dimensional array or a matrix and then show the
matrix, the boundary elements and the sum of the boundary elements, diagonal
elements and its sum. Here, <b>for loop</b> is used to set and retrieve array
elements. </span><br />
<div style="line-height: 115%; text-align: justify;">
<br /></div>
<div style="line-height: 115%;">
<br />
<b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">Programming code to find </span><span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%; mso-bidi-font-family: Times; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;">boundary
elements and higher and lower level elements of a matrix.</span></b></div>
<div style="line-height: 115%;">
<br /></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">#include<stdio.h></span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">#include<conio.h></span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">void main()</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">{</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> int a[5][5],m,n,sum=0;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">
clrscr();</a></span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> <a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html">printf</a>("Enter
row :");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> <a href="http://programming59.blogspot.com/2011/07/scanf-function-in-cc-language.html">scanf</a>("%d",&m);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("Enter coloum :");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> scanf("%d",&n);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("Enter matrix element
:\n");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(int i=0;i<m;i++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
for(int j=0;j<n;j++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
{</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("a[%d][%d]=",i,j);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
scanf("%d",&a[i][j]);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
}</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nMatrix is : \n");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(i=0;i<m;i++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
for(int j=0;j<n;j++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
{</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("%d\t",a[i][j]);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
}</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("\n");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nBoundary element :");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(i=0;i<m;i++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
for(int j=0;j<n;j++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
{</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
if((i*j==0)||(i==m-1)||(j==n-1))</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
{</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("%d ",a[i][j]);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
sum=sum+a[i][j];</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
}</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
}</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nSum of boundary element is
: %d",sum);</span></div>
<div style="line-height: 115%;">
<br /></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nHigher level : ");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> sum=0;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(i=0;i<m;i++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(int j=0;j<n;j++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
if(i==j)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
{</span></div>
<div style="line-height: 115%;">
<br /></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("\t%d",a[i][j]);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
sum=sum+a[i][j];</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
}</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<br /></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nSum of higher level =
%d",sum);</span></div>
<div style="line-height: 115%;">
<br /></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nLower lavel : ");</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> sum=0;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> i=m;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> for(int j=0;j<n;j++)</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
i=i-1;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
printf("\t%d",a[i][j]);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">
sum=sum+a[i][j];</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> printf("\nSum of lower level =
%d",sum);</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch()</a>;</span></div>
<div style="line-height: 115%;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; line-height: 115%;">}</span></div>
<div class="MsoNormal">
<br /></div>
<m:smallfrac m:val="off"><m:dispdef><m:lmargin m:val="0"><m:rmargin m:val="0"><m:defjc m:val="centerGroup"><m:wrapindent m:val="1440"><m:intlim m:val="subSup"><m:narylim m:val="undOvr"></m:narylim></m:intlim></m:wrapindent> </m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%;">
<b><span style="font-size: 16pt; line-height: 115%;">Output</span></b></div>
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCKdSmo4GFaimePKWGEyuvflMbP6L5K-CdqrCyOjhlzZsb5Rg0iX6zdXcFkaXFT4eFJIGW1LcDU1THryeZPiXNt5XWAUeYejzxI0gKyEtH-F3QlI09-D_hZazPo1wFnNUFR105_Z6Mnj4/s1600/boundary.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCKdSmo4GFaimePKWGEyuvflMbP6L5K-CdqrCyOjhlzZsb5Rg0iX6zdXcFkaXFT4eFJIGW1LcDU1THryeZPiXNt5XWAUeYejzxI0gKyEtH-F3QlI09-D_hZazPo1wFnNUFR105_Z6Mnj4/s320/boundary.JPG" width="320" /></a></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<br /></div>
</div>
Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-7820468264653202107.post-4131886737995204602011-08-30T02:42:00.000+06:002015-10-11T10:53:25.396+06:00Array Sorting Program with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Times,"Times New Roman",serif;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirMbE8N65v5BzIO472XVfDZIf6-H5IP9fd-nveKbDprlKKJzxfzsb0ikMLzYaDS0-4E_qqJFfash8a4bIRa6nBqlapOe3T4MIWi-oVBIx4mG1-ce1Sw_cIeM4EcaBUq4Oj4ngBPT6fONU/s1600/Sorting+array.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirMbE8N65v5BzIO472XVfDZIf6-H5IP9fd-nveKbDprlKKJzxfzsb0ikMLzYaDS0-4E_qqJFfash8a4bIRa6nBqlapOe3T4MIWi-oVBIx4mG1-ce1Sw_cIeM4EcaBUq4Oj4ngBPT6fONU/s1600/Sorting+array.jpg" /></a></div>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]--><span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 11pt;">This article
will show how to sort array elements with C and C++ program. The most popular <b>Bubble
Sorting algorithm</b> is used in this program. The following program will first
store inputs into array with the <a href="http://programming59.blogspot.com/2011/07/scanf-function-in-cc-language.html">scanf() function</a> and then Bubble sort
algorithm is applied to sort the array elements. The complete programming code
is given below. </span></span></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<br /></div>
<div style="border: 1pt solid windowtext; font-family: Times,"Times New Roman",serif; padding: 1pt 4pt;">
<div class="MsoNormal" style="border: medium none; padding: 0in;">
<br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Array Sorting Program </b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"> void main()</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
int a[20],N;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
clrscr();</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("How many array elements:");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
scanf("%d",&N);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("Enter elements:\n");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
<b> // Storing elements into an array</b></span> <br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br style="mso-special-character: line-break;" /></span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">
for(int i=0;i<N;i++) </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
scanf("%d",&a[i]);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
<b>// Showing unsorted array elements </b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("Array is :"); </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
for(i=0;i<N;i++)</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("%d ",a[i]);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
<b> //sorting array elements with Bubble sort algorithm</b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>
</b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
for(i=0;i<N;i++)<a href="http://programming59.blogspot.com/2011/07/loop-control-with-cc-language.html">
</a></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
int ptr=0;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
while(ptr<N-1-i)</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
if(a[ptr]>a[ptr+1])</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
int temp=a[ptr];</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
a[ptr]=a[ptr+1];</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
a[ptr+1]=temp;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
ptr=ptr+1;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>
// Showing sorted array elements</b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("\nSorted array :"); </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
for(i=0;i<N;i++)</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
printf("%d ",a[i]);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> getch ();</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> } </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Output </b></span><br />
<b>
</b><span style="color: #7030a0; font-size: 12pt; line-height: 115%;"><b><span style="font-family: Times,"Times New Roman",serif;"> </span></b><o:p></o:p></span></div>
</div>
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbQQdPf6s03CcEVZXCQuqA1F2UYeZHdh_Yn3DAg1emefo-cw1XJpQVqDcNwIzOLbE09k56BRWjOd1Mp-LmC51sBNGWy-mtzobkJ3SJEvfIT1v22hlgU50IZQK56lYqzPeGuHNYoRoxal0/s1600/sort.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbQQdPf6s03CcEVZXCQuqA1F2UYeZHdh_Yn3DAg1emefo-cw1XJpQVqDcNwIzOLbE09k56BRWjOd1Mp-LmC51sBNGWy-mtzobkJ3SJEvfIT1v22hlgU50IZQK56lYqzPeGuHNYoRoxal0/s320/sort.JPG" width="320" /></a></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<br /></div>
<span style="font-size: 13pt; line-height: 115%;"><o:p></o:p></span></div>
Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-7820468264653202107.post-24904618937366209062011-08-28T14:57:00.000+06:002015-10-11T14:16:06.789+06:00How to show a Digital Clock on the Screen using C and C++ Program<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Times,"Times New Roman",serif;">
<div style="text-align: right;">
</div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWw96Gpl9mUkducjWYoLy5jfWi29rCsfvw1ansnCN2QkLitcJnGGNDhETjhxRKyewO1ouu6ByoQD2dzbyd_iQ-7HoEUzORlZfw96kk_oaHDKc8UIxd1Iu74b3AKITBtIIFixl1TQuBT8/s1600/Digital+Clock.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWw96Gpl9mUkducjWYoLy5jfWi29rCsfvw1ansnCN2QkLitcJnGGNDhETjhxRKyewO1ouu6ByoQD2dzbyd_iQ-7HoEUzORlZfw96kk_oaHDKc8UIxd1Iu74b3AKITBtIIFixl1TQuBT8/s1600/Digital+Clock.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Digital Clock</td></tr>
</tbody></table>
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><span style="font-family: "Georgia","serif"; font-size: 12.0pt; line-height: 115%;">The following C and C++ program will show a digital clock on
the output screen. The gettime() function is being used to catch current system
time and then the time is being shown with the cprintf() function. The gettime()
function accepts a structure type variable reference. So, the time structure
variable is being used in this program. The delay() function is also being used
to hold the program execution till 1 second or 1000ms.</span><br />
<m:smallfrac m:val="off"><m:dispdef><m:lmargin m:val="0"></m:lmargin></m:dispdef></m:smallfrac><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>C and C++ program to show an digital clock</b></span></div>
<div style="line-height: 115%; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 13pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: 1pt solid windowtext; font-family: Times,"Times New Roman",serif; padding: 1pt 4pt;">
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h><span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h><span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<dos.h></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main() <span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> struct time t;<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> do<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr();<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b> gettime</b>(&t);<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>gotoxy</b>(30,10);<o:p></o:p></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b><b>textcolor</b>(2);<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> cprintf</b>("<i>Time: %2d:%02d:%02d",t.ti_hour, t.ti_min, t.ti_sec</i>);<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>delay</b>(1000);<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }<b>while(!kbhit())</b>;</span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Output </b></span><br />
<span style="font-size: 11pt; line-height: 115%;"></span><br />
<span style="font-size: 11pt; line-height: 115%;"><o:p></o:p></span></div>
</div>
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV61D7ZAkx2fIMzvecFeJDb7cxGmJYjACOf6uAhcQhRmK2D6vVlnmHSMEeMWxBYtzc06pi4DBzkvoLgZvBRmdZBCMJ9Z2RmL7LK7HxHDtanwS7yiyoGlhyphenhyphen1st5im4pyvBG4OWGS7AhBSk/s1600/clock.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="165" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV61D7ZAkx2fIMzvecFeJDb7cxGmJYjACOf6uAhcQhRmK2D6vVlnmHSMEeMWxBYtzc06pi4DBzkvoLgZvBRmdZBCMJ9Z2RmL7LK7HxHDtanwS7yiyoGlhyphenhyphen1st5im4pyvBG4OWGS7AhBSk/s320/clock.jpg" width="320" /></a></div>
<div class="MsoNormal" style="font-family: Times,"Times New Roman",serif;">
<b><u><span style="color: blue; font-size: 16pt; line-height: 115%;"><o:p><span style="text-decoration: none;"><br />
</span></o:p></span></u></b></div>
</div>
Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-7820468264653202107.post-45810590787713276162011-08-28T05:56:00.000+06:002015-10-11T16:46:14.175+06:00How to Show Date and Time with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Times,"Times New Roman",serif; text-align: left;">
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link> <m:smallfrac m:val="off"> <m:dispdef> <m:lmargin m:val="0"> <m:rmargin m:val="0"> <m:defjc m:val="centerGroup"> <m:wrapindent m:val="1440"> <m:intlim m:val="subSup"> <m:narylim m:val="undOvr"> </m:narylim></m:intlim> </m:wrapindent><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-520092929 1073786111 9 0 415 0;}
@font-face
{font-family:"\0022Times New Roman\0022";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-alt:"Times New Roman";
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:auto;
mso-font-signature:0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p
{mso-style-noshow:yes;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style></m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac><span style="font-family: Georgia,"Times New Roman",serif;">The following program will show how to print system date and time using C and C++. To show date and time, this program is using <i>__DATE__</i> and <i>__TIME__</i> macros. These macros will show date and time on the screen.</span></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
</div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<o:p></o:p></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<br /></div>
<div style="border: 1pt solid windowtext; font-family: Times,"Times New Roman",serif; padding: 1pt 0in 1pt 4pt; text-align: left;">
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h><o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h> </span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;">{<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr();<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>textcolor(6)</b>;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>cprintf</b>("<i>Showing Executing Date and Time</i> \n");<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf("\n") ;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> textcolor(2)</b>;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> cprintf</b>(" <i> </i><i>Date: %s ",__DATE__)</i>;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf("\n") ;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> textcolor(4)</b>;<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> cprintf</b>(" <i>Time: %s ",__TIME__</i>);<o:p></o:p></span></div>
<div style="border: medium none; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"> getch();<o:p></o:p></span></div>
<div style="border: medium none; line-height: 115%; padding: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><o:p></o:p></div>
</div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<br /></div>
<div style="line-height: 115%; text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 16pt; line-height: 115%;">Output</span></b></span></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYhfOIO_bQp9MKBr4FRmAW86sVqQ7X5mqbvCVbTeqhmnSr3K_e_O6Hm3jJlFmdIqUMhXPSUfpLKrmLtUvKhyQ2_N7Jg36Yeo8FS_cfJm8P6UKMhuKXEwb8WHwqlV2k5uGlIlg2E8-30I/s1600/date+and+time.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYhfOIO_bQp9MKBr4FRmAW86sVqQ7X5mqbvCVbTeqhmnSr3K_e_O6Hm3jJlFmdIqUMhXPSUfpLKrmLtUvKhyQ2_N7Jg36Yeo8FS_cfJm8P6UKMhuKXEwb8WHwqlV2k5uGlIlg2E8-30I/s1600/date+and+time.jpg" /></a></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<br /></div>
<div style="font-family: Times,"Times New Roman",serif; line-height: 115%; text-align: justify;">
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link> <m:smallfrac m:val="off"> <m:dispdef> <m:lmargin m:val="0"> <m:rmargin m:val="0"> <m:defjc m:val="centerGroup"> <m:wrapindent m:val="1440"> <m:intlim m:val="subSup"> <m:narylim m:val="undOvr"> </m:narylim></m:intlim> </m:wrapindent><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-520092929 1073786111 9 0 415 0;}
@font-face
{font-family:"\0022Times New Roman\0022";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-alt:"Times New Roman";
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:auto;
mso-font-signature:0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p
{mso-style-noshow:yes;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style> </m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac></div>
<o:p></o:p><br /></div>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-7820468264653202107.post-37004198144163809612011-07-14T03:01:00.000+06:002015-10-11T16:03:03.760+06:00Sorting and Searching Program with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglW1bbwz-KZV54lezik57k2VRs_WT7caaagiI6Dlsz-EuolAWJKqLGYu2q1vnrtwwg9ZvvzoRtXESfyCoMtP4dPQgB9dskHHGiwtmWdjcBntLJj7jJvPZ6kfEJeS1dJfCnAVdrODF5rGc/s1600/Sorting+and+Searching+Program.png.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglW1bbwz-KZV54lezik57k2VRs_WT7caaagiI6Dlsz-EuolAWJKqLGYu2q1vnrtwwg9ZvvzoRtXESfyCoMtP4dPQgB9dskHHGiwtmWdjcBntLJj7jJvPZ6kfEJeS1dJfCnAVdrODF5rGc/s1600/Sorting+and+Searching+Program.png.jpg" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">Sorting <span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">and Searching is an important task in computer programming. So, this article will show how to do a sorting or searching program with C and C++ language. The following program will first store some strings into an array and then this array will be sorted with sorting algorithm. This program also stores user searching input and then searches the string in array. If the search keyword is matched, the program will show how many times the search keyword is matched. Otherwise, search keyword not found message will be shown. </span></span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"><b>Sorting and Searching program with C and C++</b> </span></span><br />
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">#include<stdio.h> </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">#include<conio.h></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">#include<string.h></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> struct name </span></span><span style="font-family: Georgia,"Times New Roman",serif; font-size: x-small;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">// Custom data type and variable</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span>char <span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">a[10]; </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }b [10]; </span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">{ </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> int N,i,j;</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="color: black; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span>int<span style="color: black; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">c=0;</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> char name[10];</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> clrscr();</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("How many names :");</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> scanf("%d",&N); </span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> fflush(stdin);</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> for(i=0;i<N;i++) </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("Enter %d Name :",i+1);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> gets(b[i].a); </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("\n\nEntered name list :");</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> for(i=0;i<N;i++) </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("\n%s",b[i].a);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"> for(i=0;i<N;i++)</span>
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> for(j=i+1;j<N;j++)</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> if((strcmp(b[i].a,b[j].a))>0)</span><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> </span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> char temp[10];</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> strcpy( temp,b[i].a);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> strcpy(b[i].a,b[j].a);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> strcpy( b[j].a,temp);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("\n\nSorted name list :");</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> for(i=0;i<N;i++) </span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("\n%s",b[i].a);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("\n\nEnter name to search :");</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> gets(name);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> for(i=0;i<N;i++)</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> if((strcmp(b[i].a,name))==0)</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> c++;</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> if</span><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">(c==0)</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("%s not found .",name);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> else</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> {</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> printf("%s remains %d times .",name,c);</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> getch();</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"> }</span></span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: Times, "Times New Roman", serif; font-size: 12pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"><b>Program Output </b></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCuDuazmNxcHfegfAD6RymVfQE1YfFI3zG2gOi80En2YsQQhPKA5Pl9d-zHgE4aMulggpFIZxpit2yIAJnAm71cacRVQZFkcKZfJ638o61ZLQj9N8vCLyofeXGCfZjoaqsvQ_cUI1OY5A/s1600/sorting_search.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCuDuazmNxcHfegfAD6RymVfQE1YfFI3zG2gOi80En2YsQQhPKA5Pl9d-zHgE4aMulggpFIZxpit2yIAJnAm71cacRVQZFkcKZfJ638o61ZLQj9N8vCLyofeXGCfZjoaqsvQ_cUI1OY5A/s1600/sorting_search.JPG" true="" /></span></a></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt; text-align: center;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com11tag:blogger.com,1999:blog-7820468264653202107.post-38361660447656988192011-07-14T02:44:00.000+06:002015-10-11T17:29:40.341+06:00Making Pyramid with C and C++ Program<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="line-height: 115%;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_yUnMP1A5E9PAKSRatyvhkxaPf0lRRl87F066MX9loIDwkqeg9Jut1t8NQarFE7dgFtpBYlVoyZ4BhK5JKX4KlyRgy4MyTy7b6ufiCZ399kDaxEomTSe79Z-CK-TVupfGeqsjKOLQlJk/s1600/Pyramid+Program.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_yUnMP1A5E9PAKSRatyvhkxaPf0lRRl87F066MX9loIDwkqeg9Jut1t8NQarFE7dgFtpBYlVoyZ4BhK5JKX4KlyRgy4MyTy7b6ufiCZ399kDaxEomTSe79Z-CK-TVupfGeqsjKOLQlJk/s1600/Pyramid+Program.png" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">The following program will show how to make a pyramid using C and C++. The number of rows of the pyramid will be taken from the user and then it will be stored into a variable. Also two while loops are being used to build the pyramid. </span> </div>
<div style="line-height: 115%;">
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">C and C++ pyramid program</span></b><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> int i = 0, j , n ;</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr();</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b> </b>printf("How many rows in pyramid:");</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b>scanf("%d",&n);</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"> while(i<n)</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> j=0;</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b>while(j<=i)</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b>gotoxy(30+j,10+i);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> printf("%d",j);</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> j++;</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> j=0;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> while(j<=i)</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b>gotoxy(30-j,10+i);<span style="color: blue;"> </span></span></div>
<div style="line-height: 115%;">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]--><span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"","serif"; mso-bidi-font-family: Times;"> printf("%d",j);</span></span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"> j++;</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> i++;</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf("\n");</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b>getch();</span></div>
<div style="line-height: 115%;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Output </b></span></div>
<div class="separator" style="line-height: 115%; margin: 0in 0in 0pt;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8HZOWQUb7ODEfJHYgMS0NnHMfPLqFw6gRnoCXHBVYon9W-qc5XjrZzzWQXE0obFeaGACiFnsFuapIyS_uBbbzw9C5T2NxwKhJpTrxi_RIkPMju7yYisNWZErdshD-rCGj3rOmXAHJZ8c/s1600/pyramid.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8HZOWQUb7ODEfJHYgMS0NnHMfPLqFw6gRnoCXHBVYon9W-qc5XjrZzzWQXE0obFeaGACiFnsFuapIyS_uBbbzw9C5T2NxwKhJpTrxi_RIkPMju7yYisNWZErdshD-rCGj3rOmXAHJZ8c/s1600/pyramid.JPG" true="" /></span></a></div>
<div style="line-height: 115%; text-align: center;">
<br /></div>
<div style="line-height: 115%;">
<br /></div>
</div>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-7820468264653202107.post-5294436661506780742011-07-14T02:31:00.000+06:002015-10-12T14:45:14.989+06:00Remove Directory/Folder with C and C++ Program<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:RelyOnVML/>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--> <!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:RelyOnVML/>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><br />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]-->
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWbxGRUoiRSmn5TYKcwkcdzgUeLJd1hmTn0Md1S05WCq4-J7w37zRz96yrNz8N_5xzc2iexTsykXOgci_mbCB98EQj5vTtgVbbuxO4ftYeO4JB5bCUNDYlXc5kJv7QvrfvzD8jOQGTg5A/s1600/Remove+Directory+with+C+and+C%252B%252B+program.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWbxGRUoiRSmn5TYKcwkcdzgUeLJd1hmTn0Md1S05WCq4-J7w37zRz96yrNz8N_5xzc2iexTsykXOgci_mbCB98EQj5vTtgVbbuxO4ftYeO4JB5bCUNDYlXc5kJv7QvrfvzD8jOQGTg5A/s1600/Remove+Directory+with+C+and+C%252B%252B+program.jpg" /></a><span style="font-family: "Georgia","serif";">The following program will show
how to remove a directory/folder with C and C++. This program will store
directory path and name from the user and then directory will be deleted with
the rmdir() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a>. The rmdir() function will return 0 if directory is
removed successfully otherwise it will return 1. </span><br />
<br />
<br />
<br />
<b><span style="font-family: "Georgia","serif";">Directory removal program
with C and C++ </span></b><br />
<span style="font-family: "Georgia","serif";"><br />
#include<stdio.h></span><br />
<span style="font-family: "Georgia","serif";">#include<conio.h></span><br />
<span style="font-family: "Georgia","serif";">#include<process.h></span><br />
<span style="font-family: "Georgia","serif";">#include<dir.h></span><br />
<span style="font-family: "Georgia","serif";"><br />
void main()</span><br />
<span style="font-family: "Georgia","serif";">{ </span><br />
<span style="font-family: "Georgia","serif";"> int cheack;</span><br />
<span style="font-family: "Georgia","serif";"> char *dirname;</span><br />
<span style="font-family: "Georgia","serif";"> clrscr()<span style="color: black;">;</span> </span><br />
<span style="font-family: "Georgia","serif";"> printf("Enter
a directory path and name to be deleted (C:/name):");</span><br />
<span style="font-family: "Georgia","serif";"> gets(dirname);</span><br />
<b><span style="font-family: "Georgia","serif";"> </span></b><span style="font-family: "Georgia","serif";"> system("dir/p");</span><br />
<span style="font-family: "Georgia","serif";"> </span><br />
<span style="font-family: "Georgia","serif";"> <b>cheack =
rmdir(dirname)</b>;</span><br />
<span style="font-family: "Georgia","serif";"> if (!cheack)</span><br />
<span style="font-family: "Georgia","serif";"> printf("Directory
deleted\n");</span><br />
<span style="font-family: "Georgia","serif";"> else</span><br />
<span style="font-family: "Georgia","serif";"> { </span><br />
<span style="font-family: "Georgia","serif";">
printf("Unable to remove directory\n");</span><br />
<span style="font-family: "Georgia","serif";"> getch();</span><br />
<span style="font-family: "Georgia","serif";">
exit(1);</span><br />
<span style="font-family: "Georgia","serif";"> }</span><br />
<span style="font-family: "Georgia","serif";"> getch();</span><br />
<span style="font-family: "Georgia","serif";">}</span><br />
<br />
<b><span style="font-family: "Georgia","serif";">Program Output</span></b><br />
<span style="font-family: "Georgia","serif";"><br />
Enter a directory path and name to be deleted (C:/name):<b>C:/test</b></span><br />
<b><span style="font-family: "Georgia","serif";">Directory deleted</span></b><span style="font-family: "Georgia","serif";">.</span><br />
<br />
<span style="font-family: "Georgia","serif"; font-size: 13.0pt;"></span><br />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]--><span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com15tag:blogger.com,1999:blog-7820468264653202107.post-89386843071134406072011-07-14T02:22:00.000+06:002015-10-12T14:48:22.772+06:00Create Directory/Folder with C/C++ Program<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6EnYLSgjeKsIlnF-K8dqwSSGLT4-dwF2Vt2D27P44E7u9HMn0zWNKiGV5sn3Bam-dg-kU1R25C1GIA4VDFSyP3fYOLcXjuv6lxOZtgQOgusb4BvLoXgcnch1joWiaAowwly8FERcpWe0/s1600/Remove+Directory+with+C+and+C%252B%252B+program.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6EnYLSgjeKsIlnF-K8dqwSSGLT4-dwF2Vt2D27P44E7u9HMn0zWNKiGV5sn3Bam-dg-kU1R25C1GIA4VDFSyP3fYOLcXjuv6lxOZtgQOgusb4BvLoXgcnch1joWiaAowwly8FERcpWe0/s1600/Remove+Directory+with+C+and+C%252B%252B+program.jpg" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">The following program will show how to create a directory/folder with C and C++. This program will create a folder in a specific directory path with the mkdir() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a>. The mkdir() function accepts an argument which is the name and path of the directory.</span><br />
<br />
<br />
<br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>C and C++ program to create a directory/folder</b></span><br />
<div style="text-align: justify;">
<br /></div>
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h><br />
#include<conio.h><br />
#include<process.h><br />
#include<dir.h></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span>
<span style="font-family: Georgia,"Times New Roman",serif;">{<br />
int check;<br />
char *dirname;<br />
clrscr();<br />
printf("Enter a directory path and name to be created (C:/name):");<br />
gets(dirname);<br />
check = <b>mkdir</b>(dirname);</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br />
if (!check)<br />
<span style="color: blue;"> </span>printf("Directory created\n");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br />
else<br />
{<span id="goog_678594844"></span><span id="goog_678594845"></span><br />
printf("Unable to create directory\n");<br /> exit(1);
}</span>
<span style="font-family: Georgia,"Times New Roman",serif;"><br />
getch();<br />
system("dir/p");<br />
getch();<br />
}</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output</b></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">Enter a directory path and name to be created (C:/name): <b>C:/test</b>.</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Directory created</b>.</span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<br /></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com20tag:blogger.com,1999:blog-7820468264653202107.post-74443114946042481602011-07-14T02:08:00.000+06:002015-10-12T16:17:19.042+06:00Loop Statement in C/C++ Programming<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Loop</b> <b>statement </b>is used to iterate a block of statement<b>. </b>Generally a loop statement has three parts. </span><br />
<br /></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><i style="mso-bidi-font-style: normal;"> </i> 1. Loop initialization. </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> 2. Loop condition. </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> 3. Loop increment or decrement. </span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">Loop statement first stores initial value in loop control variable and then check condition with loop control variable for taking decision and then increases or decreases the initial value. Mainly three types of loop statements are used in C and C++ programming. </span><br />
<br /></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> 1. for loop statement</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> 2. while loop statement</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> 3. do while loop statement</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>for Loop Statement</b></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="color: black;"></span></b><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;">for loop statement is the mostly used loop statement in C and C++ programming. The basic structure of a for loop statement is shown below.</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>for (initialization ; condition ; increment/decrement )</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>{</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b> loop body;</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>}</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">Say, you want to print<b> </b>numbers<b> </b>from 1 to 100. For this, you can use a for loop statement. An example is given below. </span><br />
<br /></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main ()</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr ();</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> for(int counter =1; counter<=100; counter++)</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf (“%d\t”, counter);</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <span style="mso-spacerun: yes;"> </span>}</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">getch();</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: "Courier New",Courier,monospace;"><span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output </b></span></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXYN28PismQhZfuR3hcGcsfR2hOFqqtfyxy0YVp7G1zXflanUhYrWj3rZDcWGXnOz9K7AYoI3XB089WiWOC3hIrcPiLc4xaAJSQknmZSBlKVg9Yx2aYcsc9KVwNanDs-aIUz-YVaB5HkI/s1600/for.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXYN28PismQhZfuR3hcGcsfR2hOFqqtfyxy0YVp7G1zXflanUhYrWj3rZDcWGXnOz9K7AYoI3XB089WiWOC3hIrcPiLc4xaAJSQknmZSBlKVg9Yx2aYcsc9KVwNanDs-aIUz-YVaB5HkI/s1600/for.JPG" true="" /></span></a></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>while Loop Statement</b> </span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">while loop statement works same as for loop statement<b>.</b> The structure of a while loop statement is given below.</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>initialization</b>;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>while </b>(<b>condition</b>)</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b><b> loop body</b>;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> </b><b>increment/decrement</b>;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">Say, you want to print those numbers which are divisible by 5 from 1 to 100. For this, you can use a while loop statement. An example is given below.</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main ()</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr ();</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> int counter = 5;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> while (counter<=100)</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf (“%d\t”,counter);</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> counter = counter+5;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">getch();</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output </b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpePC2i1t6x42DTaLhMtP14MwpBUN4HuwYmeE9iK_wnUJTilaJuNxmJ0Vzxrpuf80L11NvR562CgGM6iYqxGTacoNswa5xtpMFbTgNB9FjjwwMH2Mc7sA08oCRai2STYvoeg9FpvmeB6Q/s1600/while.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpePC2i1t6x42DTaLhMtP14MwpBUN4HuwYmeE9iK_wnUJTilaJuNxmJ0Vzxrpuf80L11NvR562CgGM6iYqxGTacoNswa5xtpMFbTgNB9FjjwwMH2Mc7sA08oCRai2STYvoeg9FpvmeB6Q/s1600/while.JPG" true="" /></span></a></div>
<div style="text-align: center; text-justify: inter-ideograph;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<br />
<br />
<div style="text-align: left;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>do while Loop Statement </b></span></div>
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">do while loop statement works same as while loop statement but only difference is that do while loop statement checks condition after executing first block and while loop statement first checks condition and then executes any block. The above example can be done with do while loop statement. The above example with do while statement is given below.</span>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main ()</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr ();</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> int counter = 5;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> do</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf (“%d\t”,counter);</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> counter = counter+5;</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }while (counter<=100);</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> getch();</span></div>
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">This example will generate same output like above example but the structure and working procedure is different. </span></div>
</div>
Unknownnoreply@blogger.com24tag:blogger.com,1999:blog-7820468264653202107.post-61615042478291686552011-07-14T01:55:00.000+06:002015-10-12T17:05:25.082+06:00Sound Programming with C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0nMvCaBr75G0Gx7pkvaQFqZRGsRM828p3Eh0ewPkA5hpe6CyimSUmlQifTJPv9OILRf4MCpLy5NNcZQVv1MBFBwM2AKVKNHIIuxTLaP0cuxcKcuD_UsAOLJh_NMzLDlwW1IfPWHkLCCE/s1600/sound+program.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0nMvCaBr75G0Gx7pkvaQFqZRGsRM828p3Eh0ewPkA5hpe6CyimSUmlQifTJPv9OILRf4MCpLy5NNcZQVv1MBFBwM2AKVKNHIIuxTLaP0cuxcKcuD_UsAOLJh_NMzLDlwW1IfPWHkLCCE/s1600/sound+program.jpg" /></a></div>
<span style="font-family: Times, "Times New Roman", serif;"><span style="font-family: "Times", "serif";"><span style="font-family: Georgia,"Times New Roman",serif;">The following program will show how to do a sound program with C and C ++. Sound is necessary to make a game with C and C++ program. The build-in sound() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> is used to generate sound in C and C++ program. The sound() function accepts a parameter which indicates the frequency level of a sound.</span></span></span><br />
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>C and C++ program to generate sound</b></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h.></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> int i;</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr();</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf<i style="mso-bidi-font-style: normal;">(“Making sound………………”);</i></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> for(i=0;i<100;i++)</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>sound(250*i);</b></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>delay(250);</b></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>nosound();</b></span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> getch();</span></div>
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output</b></span> </div>
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<div style="line-height: 115%; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">While Running above program, you will hear different sounds from your speaker. The delay() and nosound() function are also used with sound() function because delay() function will delay the program execution for hearing sound clearly and nosound() function will clear the previous sound.</span></div>
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<br /></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com31tag:blogger.com,1999:blog-7820468264653202107.post-3813394322601259652011-07-14T00:16:00.000+06:002015-10-10T23:40:43.790+06:00The scanf() Function in C and C++ <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
table.MsoTableGrid
{mso-style-name:"Table Grid";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-priority:59;
mso-style-unhide:no;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Function
name:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <i>scanf()</i></span>
<br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Function
Header:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <i><stdio.h></i></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Declaration:</span></b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <i><a href="http://programming59.blogspot.com/2011/07/data-type-with-cc-language.html"><span style="color: windowtext; text-decoration: none; text-underline: none;">int</span></a>
<b>scanf </b>(const char *format [, address,………..]);</i></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Return
Value: </span></b><i><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">On
success, the scanf() function <b>return </b>the number of input fields
successfully scanned, converted and stored. <b>Return </b><b style="mso-bidi-font-weight: normal;">0,</b> if no fields were stored</span></i><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">. </span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" /></a></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">The scanf() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> scans and formats input from stdin. It scans a series of input
fields (all the characters up to the next white-space character) at a time. The
format of scanf() function<b><span style="color: #741b47;"> </span></b>is <span style="mso-bidi-font-weight: bold;">scanf
(“Formatted_specifier”, &variable_name)</span>.<b> </b>If you don’t
use the &<b> </b><span style="mso-bidi-font-weight: bold;">(Ampersand or Address
Operator),</span> <span style="mso-bidi-font-weight: bold;">you might get
undesired result<b>.</b></span> So you should be careful to put it before the variable
name. </span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">
<br />
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">The list of formatted specifiers</span></b><br />
<br /></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<br />
<table align="left" border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: outset #FFC000 1.0pt; mso-border-alt: outset #FFC000 .75pt; mso-border-insideh: .75pt outset #FFC000; mso-border-insidev: .75pt outset #FFC000; mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-table-anchor-horizontal: column; mso-table-anchor-vertical: paragraph; mso-table-left: left; mso-table-lspace: 2.25pt; mso-table-rspace: 2.25pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 137.25pt;" valign="top" width="183"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Formatted Specifier</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 216.75pt;" valign="top" width="289"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Meaning</span></b><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 137.25pt;" valign="top" width="183"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%d</span></div>
</td>
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 216.75pt;" valign="top" width="289"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">For storing integer value</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 137.25pt;" valign="top" width="183"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%c</span></div>
</td>
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 216.75pt;" valign="top" width="289"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">For storing a character</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 137.25pt;" valign="top" width="183"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%s</span></div>
</td>
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 216.75pt;" valign="top" width="289"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">For storing string</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 4; mso-yfti-lastrow: yes;">
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 137.25pt;" valign="top" width="183"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%f</span></div>
</td>
<td style="border: inset #FFC000 1.0pt; mso-border-alt: inset #FFC000 .75pt; padding: 0in 0in 0in 0in; width: 216.75pt;" valign="top" width="289"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">For storing float and double value</span></div>
</td>
</tr>
</tbody></table>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Example</span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
of the scanf() function</span></b></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">#include<stdio.h></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">#include<conio.h></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">void main()</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">{</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> int i;</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> char c;</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> char s[10];</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <span style="color: orange;"> </span>float f;</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr();</a></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> printf("Enter
an integer number:");</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b> scanf</b>("%d",&i);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b> </b><span style="mso-bidi-font-weight: bold;">fflush</span>(stdin);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <span style="color: blue;"><span style="mso-spacerun: yes;"> </span></span><span style="mso-bidi-font-weight: bold;">printf</span>("Enter string:");</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b>scanf</b>("%s",s);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b> </b><span style="mso-bidi-font-weight: bold;">fflush</span>(stdin);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html">printf</a>("Enter
a floating number:");</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b>scanf</b>("%f",&f);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b> </b><span style="mso-bidi-font-weight: bold;">fflush</span>(stdin);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <span style="color: blue; text-decoration: none; text-underline: none;"> </span>printf("Enter a
character:");</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b>scanf</b>("%c",&c);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <b> </b> printf("\nYou
have entered \n\n");</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> printf("integer:%d
\ncharacter:%c \nstring:%s \nfloat:%f",i,c,s,f);</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch()</a>;</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">}</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
</span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times; mso-bidi-font-weight: bold;">Here</span><b> </b>four formatted inputs<b> </b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times; mso-bidi-font-weight: bold;">are stored with scanf() function</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">. There is no need to declare the<span style="color: black; mso-bidi-font-weight: bold;"> </span><span style="mso-bidi-font-style: italic; mso-bidi-font-weight: bold;">address Operator</span>
(&) for storing string value because variable name is the original address for string value. The fflush(stdin) function is also being used
to flush the buffer.</span><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><br />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">If you don't use<span style="mso-bidi-font-weight: bold;"> fflush(stdin)</span>, there will be a problem in buffer and you can’t
store inputs properly by <span style="mso-bidi-font-weight: bold;">scanf</span>() function.</span>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--></div>
<br />
<b>Output</b></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPpiCH3hhXv8BTGMJQDskU-SAw7HaI0XjSjOAvqLzv1Q5Qqh97C43_pYZcKKSfZKRzmncUbYTXvOpUlFIOEozF2PyXqv-KfopV6BxXuxOQXqDjzfBea0lVLQXppMKrE97BdaYs6eab1lc/s1600/scanf.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPpiCH3hhXv8BTGMJQDskU-SAw7HaI0XjSjOAvqLzv1Q5Qqh97C43_pYZcKKSfZKRzmncUbYTXvOpUlFIOEozF2PyXqv-KfopV6BxXuxOQXqDjzfBea0lVLQXppMKrE97BdaYs6eab1lc/s1600/scanf.JPG" true="" /></a></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com25tag:blogger.com,1999:blog-7820468264653202107.post-84477799337196291552011-07-13T23:59:00.000+06:002015-10-11T11:11:35.731+06:00The getch() Function in C and C++ <div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">Function Name:<i> </i></span></b><i><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">getch() </span></i><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> </span><br />
<div style="text-align: justify;">
<b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">Function Header:</span></b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <i><conio.h></i></span></div>
<b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">Declaration: </span></b><i><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">int</span></i><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> getch(<i>void)</i></span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span><br />
<div style="text-align: justify;">
<b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">Return Value:</span></b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <i>This function returns the character read from the keyboard<b>.</b></i></span><br />
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"><i><b> </b></i></span></div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" /></a></div>
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">The getch() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> is used to catch a character<b> </b>from the keyboard.
The getch() function reads a single character from the keyboard but does not show on the screen.
For this functionality, you can use the getch() function to hold the output window until hitting any key from the keyboard.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">Example of the getch() function</span></b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">#include <conio.h></span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">#include <stdio.h></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">void main()</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">{</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="color: blue; font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> </span><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">int c;</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <span style="color: blue;"> </span><a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr()</a><a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html"><span style="color: windowtext;">;</span></a></span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="color: blue; font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> </span><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">printf(“Press
any key\n”);</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> c = <b>getch()</b>;</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<b><span style="color: black; font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> </span></b><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times; mso-bidi-font-weight: bold;">if</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> (c)</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <span style="color: blue;"> </span>printf(“A
key is pressed from keyboard ”);</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <span style="mso-bidi-font-weight: bold;">else</span></span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html"><span style="mso-bidi-font-weight: bold;">printf</span></a>(“An error occurred ”);</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;"> <b>getch()</b>; </span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<div style="text-align: justify;">
<span style="font-family: "Georgia","serif"; font-size: 11.0pt; mso-bidi-font-family: Times;">}</span><span style="font-family: "Georgia","serif"; font-size: 11.0pt;"></span></div>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Times, "Times New Roman", serif;"><b><span style="font-family: ""serif"", "serif"; font-size: 16pt;">Output</span></b></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2ekz6dHsSpS7SPsLnV7BKBshheWjjTwmLV8wtEBX5THSLeZ267SjrXHtOTvpUg8jtAxEwrP6mqGEEPmo63z2pcdsSIfWEbMnkRs1GF_V0vdKnqDGY6EkKeklhiSRyyuM-6Gq5EpNVdvo/s1600/getch.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2ekz6dHsSpS7SPsLnV7BKBshheWjjTwmLV8wtEBX5THSLeZ267SjrXHtOTvpUg8jtAxEwrP6mqGEEPmo63z2pcdsSIfWEbMnkRs1GF_V0vdKnqDGY6EkKeklhiSRyyuM-6Gq5EpNVdvo/s1600/getch.JPG" true="" /></span></a><b><span style="color: blue; font-family: ""serif"", "serif"; font-size: 24pt;"><b><u><span style="color: blue; font-family: ""serif"", "serif"; font-size: 16pt;"></span></u></b></span></b></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com26tag:blogger.com,1999:blog-7820468264653202107.post-66502465718292206612011-07-13T23:46:00.000+06:002015-10-11T11:19:28.556+06:00The clrscr() Function in C and C++ <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Function Name</b>: <i>clrscr()</i> </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Function</b><span style="color: black;"><a href="http://programming71.blogspot.com/2011/03/function-in-c-language.html"><b> </b></a></span><b>Header</b>: <i><conio.h></i></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Declaration</b><span style="color: #741b47;">:</span> <i>void</i> <i>clrscr(void);</i></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Return Value</b>: <i>None</i></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">The clrsrc() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> is used to <b>clear text mode window</b>. It clears the current text window and places the cursor in the upper<span style="font-size: 14pt;"> </span>left-hand corner<b> </b>(at position 1, 1). If you don’t use this function, you will see the previous output text written by previous program. </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Example of the clresc() function</b></span>
</div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include <conio.h></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b> </b>void main()</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> {</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> int i;</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>clrscr();</b></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b> </b><span style="font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-weight: bold; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">for( i = 0; i < 10; i++)</span></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <span style="color: blue;"> </span><a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html"><b> </b>printf</a>("clrscr function test\n");</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <span style="color: blue;"> <b> </b></span>printf("\n\nPress any key to clear screen");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> getch(); </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> clrscr();</b></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> printf("The screen has been cleared!");</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html"><b>getch()</b>;</a></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> }</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<span style="font-family: Times, "Times New Roman", serif;"><span style="font-family: Georgia,"Times New Roman",serif;"><b>Output</b></span><br />
</span></div>
<div style="text-align: justify;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxpB199VoIAece1eHMGKO1TJ2DfhvLa-rD7JA1e-E4JXTlgKXBxvtPfh0kzRUdks9dfbju9rt9QpVzSubfx-4UcM3XoLEFp7WVgQ3sXJuSHk7hgkRhBU02rayvCxekwf6v_fp88pS7CEY/s1600/clrscr1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxpB199VoIAece1eHMGKO1TJ2DfhvLa-rD7JA1e-E4JXTlgKXBxvtPfh0kzRUdks9dfbju9rt9QpVzSubfx-4UcM3XoLEFp7WVgQ3sXJuSHk7hgkRhBU02rayvCxekwf6v_fp88pS7CEY/s1600/clrscr1.JPG" true="" /></span></a></div>
<div class="separator" style="margin: 0in 0in 0pt; text-align: center;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div style="text-align: justify;">
<span style="font-family: Times, "Times New Roman", serif;">When you press any key, you will find the below output.</span></div>
<div style="text-align: justify;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgooR1sLCzqU_9ceb0VtHoIFMgJ5bBEEBuovq9_BzdwTJ33gmJv_Mqz8LDo_RCwK_TjpxGfHytx2TLBfbZ_fALiYI1pMN-MwE3yVFkXoc6rTeijv3Tzp1qhVOtVd5lL77NYw9U3Urfdi7M/s1600/clrscr2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgooR1sLCzqU_9ceb0VtHoIFMgJ5bBEEBuovq9_BzdwTJ33gmJv_Mqz8LDo_RCwK_TjpxGfHytx2TLBfbZ_fALiYI1pMN-MwE3yVFkXoc6rTeijv3Tzp1qhVOtVd5lL77NYw9U3Urfdi7M/s1600/clrscr2.JPG" true="" /></span></a></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Times, "Times New Roman", serif;"><br />
</span></div>
</div>
Unknownnoreply@blogger.com14tag:blogger.com,1999:blog-7820468264653202107.post-81220551896355093372011-07-13T16:14:00.000+06:002015-10-11T11:20:06.437+06:00The printf() Function in C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Function Name: </b><i>printf()</i></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Function Header:</b> <i><stdio.h></i> </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Declaration:</b> <i>int printf(const char *format [ ,argument ,...]);</i></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Return Value<i>:</i></b><i> printf() sends formatted output to stdin.</i></span><br />
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">The printf() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> is used to print something on the output window. It prints the strings which are written within quotation. The printf() function is also used to print formatted output.</span> <br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<br />
<br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>The example of printf() function</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr()</a>; </span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b>printf</b>(<i>"Welcome to C programming</i>");</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch();</a></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Output</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6bPD2X0EbNpGjM-p-xz2nmxGb8v5F9D8bx2LW8NV5xW_yQ8dR3y2qJvlviUk7RlTKcYhOVnvjOfN90jGuzsbokoWz0z7I-QMYlWbv9IAcUU_9X_30txu7qscoCWKefGZ2jEl0V4COf6c/s1600/printf1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6bPD2X0EbNpGjM-p-xz2nmxGb8v5F9D8bx2LW8NV5xW_yQ8dR3y2qJvlviUk7RlTKcYhOVnvjOfN90jGuzsbokoWz0z7I-QMYlWbv9IAcUU_9X_30txu7qscoCWKefGZ2jEl0V4COf6c/s1600/printf1.JPG" true="" /></span></a></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">The printf() is mostly used to print formatted output. An example is given below for showing <b>how to print formatted output with printf() function</b>.</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> clrscr();</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"> <b> printf(</b><i>"I like %c %s",'C',"very much</i>");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> getch(); </span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Output</b></span></div>
<div style="text-align: justify; text-justify: inter-ideograph;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilE8tzU38fk_JXbjNdibs8Xs-_CEVoZc-H9iH_k2yhlvBU3KREQzkv95vux5GQehllM3x6LMjg_H_gjtbu0Pkct1y52zxoGootL47dlOAdvAD0H0MlOk-I-n3x6JMM_Wla-80q2CWPTgc/s1600/prinf2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilE8tzU38fk_JXbjNdibs8Xs-_CEVoZc-H9iH_k2yhlvBU3KREQzkv95vux5GQehllM3x6LMjg_H_gjtbu0Pkct1y52zxoGootL47dlOAdvAD0H0MlOk-I-n3x6JMM_Wla-80q2CWPTgc/s1600/prinf2.JPG" true="" /></span></a></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com41tag:blogger.com,1999:blog-7820468264653202107.post-60542616376626432162011-07-13T11:39:00.000+06:002015-10-11T10:19:54.013+06:00The main() Function in C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8WoJjOniptaeQJ1xmFQdLMJLc00eNW82Podzf1B7LgFqo-lhOupF7pv5uyo_ZF-BLiLlR8O4x-bBlhAPVViuZWQPd_MMrUVCvL_CK0P0t5JcuYBmKzUx0KzEMI78BhhnD30zLeK80MU/s1600/getch%2528%2529+function.jpg" /></a></div>
<span style="font-family: Georgia,"Times New Roman",serif;">The main() <a href="http://programming59.blogspot.com/2011/07/function-in-c-language.html">function</a> is an user-defined function. Normally every C/C++ program should have a main() function because it is the entry point of any C and C++ program. The C and C++ compiler start compiling and executing any C and C++ program from the main() function. The compiler first calls the main() function and then the main() function calls all the functions having in its body one by one.<b> </b>The smallest C program is shown below. </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">{</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">}</span><br />
<br />
<span style="font-family: Times, "Times New Roman", serif;"><span style="font-family: ""Times New Roman"", "serif";"><span style="font-family: Georgia,"Times New Roman",serif;"><b>Compiling Result</b></span> </span></span></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir1TChzhPDvBltcN5R0KysC86Rt2yOYHMlNHqCBAfz6-MWXN4pKWmIqFF94XzifWsdFdjg6U207I9nvSUEnQ9bBdIraQf4LvRJpvvLhUTU_vjFQXSVzCrwnvlJX13p3JIUPTLzunBx8lM/s1600/main2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" height="165" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir1TChzhPDvBltcN5R0KysC86Rt2yOYHMlNHqCBAfz6-MWXN4pKWmIqFF94XzifWsdFdjg6U207I9nvSUEnQ9bBdIraQf4LvRJpvvLhUTU_vjFQXSVzCrwnvlJX13p3JIUPTLzunBx8lM/s320/main2.JPG" true="" width="320" /></span></a></div>
<div style="text-align: justify;">
<b><span style="color: purple; font-family: ""Times New Roman"", "serif"; font-size: 18pt;"><span style="font-family: Times, "Times New Roman", serif;"> </span></span></b></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">The above program will generate no error or no warning<b> </b>but will produce no output because there is no<a href="http://www.blogger.com/goog_986676354"> </a>function inside the main() function's body for executing. But if you execute the flowing code,<b> </b>you will see an output on the screen<b>.</b> </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;"> </span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia,"Times New Roman",serif;">#include<stdio.h></span></div>
<span style="font-family: Georgia,"Times New Roman",serif;">#include<conio.h> </span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif;">void main()</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">{</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr()</a>;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html">printf</a>("Hello! I'm a novice in C and C++ programming.");</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"> <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch()</a>;</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">} </span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Compiling Report</b></span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxY8lNGX0BKsVamLTJQO666kEMvNxrV42SypAg0RPEpoxwqYHD19q-LKuC7noc3jHADPMwViGiSPoDh4FU7X1WvbJh7_bormkJ4r9zBQ6t79kJNNDmCEl0iva3U9A6k5GTiM9AnPlR2cg/s1600/main1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" height="155" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxY8lNGX0BKsVamLTJQO666kEMvNxrV42SypAg0RPEpoxwqYHD19q-LKuC7noc3jHADPMwViGiSPoDh4FU7X1WvbJh7_bormkJ4r9zBQ6t79kJNNDmCEl0iva3U9A6k5GTiM9AnPlR2cg/s320/main1.JPG" true="" width="320" /></span></a></div>
<br />
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output</b></span><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3vu5_53zriqFirLiK_iRVwtjhQ65Kocv98KeaHC_QC2rcH_gHtoOn5SazheywZNCuIlrJ-i8gjrNCeGtj7upnhx2sZbhqhDhWtGUArxa__KIRJ2zAmQ0vM80B5QServXIFktLZad3eMQ/s1600/main%2528%2529.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Times, "Times New Roman", serif;"><img border="0" height="123" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3vu5_53zriqFirLiK_iRVwtjhQ65Kocv98KeaHC_QC2rcH_gHtoOn5SazheywZNCuIlrJ-i8gjrNCeGtj7upnhx2sZbhqhDhWtGUArxa__KIRJ2zAmQ0vM80B5QServXIFktLZad3eMQ/s320/main%2528%2529.JPG" true="" width="320" /></span></a></div>
<br />
<br />
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com8tag:blogger.com,1999:blog-7820468264653202107.post-4657979067645707762011-07-13T11:23:00.000+06:002015-10-12T21:34:07.566+06:00Predefined Streams in C and C++<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">C and C++
compiler has some predefined streams which indicate some standard devices.
These predefined streams are automatically opened when C/C++ program is
started. The <stdio.h> header file contains the definition of these
predefined streams. Predefined streams used in C and C++ and its meanings are
mentioned below. <span style="mso-spacerun: yes;"> </span></span><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<table align="left" border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: solid #E36C0A 1.0pt; mso-border-alt: solid #E36C0A .5pt; mso-border-insideh-themecolor: accent6; mso-border-insideh-themeshade: 191; mso-border-insideh: .5pt solid #E36C0A; mso-border-insidev-themecolor: accent6; mso-border-insidev-themeshade: 191; mso-border-insidev: .5pt solid #E36C0A; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-table-anchor-horizontal: margin; mso-table-anchor-vertical: paragraph; mso-table-left: left; mso-table-lspace: 2.25pt; mso-table-rspace: 2.25pt; mso-table-top: 7.65pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 16.8pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid #E36C0A 1.0pt; height: 16.8pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 5.4pt 0in 5.4pt; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<b><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Name</span></b><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 16.8pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<b><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Meaning</span></b><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="height: 14.25pt; mso-yfti-irow: 1;">
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">stdin</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Standard
input device</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="height: 14.25pt; mso-yfti-irow: 2;">
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">stdout</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Standard
output device</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="height: 14.25pt; mso-yfti-irow: 3;">
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">stderr</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Standard
error output device</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="height: 13.55pt; mso-yfti-irow: 4;">
<td style="border: solid #E36C0A 1.0pt; height: 13.55pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">stdaux</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 13.55pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Standard
auxiliary device</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
<tr style="height: 14.25pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes;">
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 99.45pt;" valign="top" width="133"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">stdprn</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
<td style="border: solid #E36C0A 1.0pt; height: 14.25pt; mso-border-alt: solid #E36C0A .5pt; mso-border-themecolor: accent6; mso-border-themecolor: accent6; mso-border-themeshade: 191; mso-border-themeshade: 191; padding: 0in 0in 0in 0in; width: 199.45pt;" valign="top" width="266"><div align="center" class="MsoNormal" style="line-height: normal; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 2.25pt; mso-element-top: 7.65pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";">Standard
printer</span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: "Times","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"></span></div>
</div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-7820468264653202107.post-32965511097439742972011-07-13T11:15:00.000+06:002015-10-13T12:44:42.766+06:00Data Type With C/C++ Language<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]-->
</div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:RelyOnVML/>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Playing
with data is the main task of a C and C++ programmer. C/C++ divides computer data
into various categories such as, <span style="mso-bidi-font-weight: bold;">integer
number<b> </b></span>(1, 2, 5, 7…),<b> </b><span style="mso-bidi-font-weight: bold;">floating number<b> </b></span>(2.5, 3.5, 8.9…), various character<b>
</b>(a…z, A…Z, #, &) etc. The following table will describe the data types
used in C and C++ program.</span></span><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<span style="font-family: Georgia,"Times New Roman",serif;">
</span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: solid #FFC000 1.0pt; mso-border-alt: solid #FFC000 .5pt; mso-border-insideh: .5pt solid #FFC000; mso-border-insidev: .5pt solid #FFC000; mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 15.3pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid #FFC000 1.0pt; height: 15.3pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 112.95pt;" valign="top" width="151"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12pt;">Data Type</span></b><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.3pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 114.8pt;" valign="top" width="153"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12pt;">Example</span></b><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.3pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 200.95pt;" valign="top" width="268"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12pt;">Description</span></b><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 16.2pt; mso-yfti-irow: 1;">
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 112.95pt;" valign="top" width="151"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">char</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 114.8pt;" valign="top" width="153"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">‘S’ or ‘J’</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 200.95pt;" valign="top" width="268"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Various characters</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 16.2pt; mso-yfti-irow: 2;">
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 112.95pt;" valign="top" width="151"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">int</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 114.8pt;" valign="top" width="153"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">325759</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 200.95pt;" valign="top" width="268"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Integer value</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 16.2pt; mso-yfti-irow: 3;">
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 112.95pt;" valign="top" width="151"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">float</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 114.8pt;" valign="top" width="153"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">3.1416</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 16.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 200.95pt;" valign="top" width="268"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Floating number</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 18.4pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;">
<td style="border: solid #FFC000 1.0pt; height: 18.4pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 112.95pt;" valign="top" width="151"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">double</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 18.4pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 114.8pt;" valign="top" width="153"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">8.430896314</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 18.4pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 200.95pt;" valign="top" width="268"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Floating number greater than float.</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
</tbody></table>
<span style="font-family: Georgia,"Times New Roman",serif;">
</span><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">These
four data types are the basic built-in data types in C/C++ programming. C/C++
keeps data into system memory while running program and <span style="mso-bidi-font-weight: bold;">different data types allocate different memory size</span>. Data types
and memory allocation list is given below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<span style="font-family: Georgia,"Times New Roman",serif;">
</span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: solid #FFC000 1.0pt; mso-border-alt: solid #FFC000 .5pt; mso-border-insideh: .5pt solid #FFC000; mso-border-insidev: .5pt solid #FFC000; mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 20.15pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid #FFC000 1.0pt; height: 20.15pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 68.9pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12pt;">Data Type</span></b><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 20.15pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 103.5pt;" valign="top" width="138"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12pt;">Memory Space</span></b><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 20.15pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 279.65pt;" valign="top" width="373"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt;">Range</span></b><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt;"></span></b></span></div>
</td>
</tr>
<tr style="height: 29.6pt; mso-yfti-irow: 1;">
<td style="border: solid #FFC000 1.0pt; height: 29.6pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 68.9pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">char</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 29.6pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 103.5pt;" valign="top" width="138"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">1 byte or 8 bit</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 29.6pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 279.65pt;" valign="top" width="373"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Any number between -128 to 127 but it is used
only to keep ASCII character.</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 15.2pt; mso-yfti-irow: 2;">
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 68.9pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">integer</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 103.5pt;" valign="top" width="138"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">2 byte or 16 bit</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 279.65pt;" valign="top" width="373"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Any number between -32768 to 32767</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: 15.2pt; mso-yfti-irow: 3;">
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 68.9pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">float</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 103.5pt;" valign="top" width="138"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">4 byte or 32 bit</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: 15.2pt; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 279.65pt;" valign="top" width="373"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Any number between</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
<tr style="height: .2in; mso-yfti-irow: 4; mso-yfti-lastrow: yes;">
<td style="border: solid #FFC000 1.0pt; height: .2in; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 68.9pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">double</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: .2in; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 103.5pt;" valign="top" width="138"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">8 byte or 64 bit</span><span style="font-size: 12pt;"></span></span></div>
</td>
<td style="border: solid #FFC000 1.0pt; height: .2in; mso-border-alt: solid #FFC000 .5pt; padding: 0in 0in 0in 0in; width: 279.65pt;" valign="top" width="373"><div align="center" class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;">Any number between</span><span style="font-size: 12pt;"></span></span></div>
</td>
</tr>
</tbody></table>
<span style="font-family: Georgia,"Times New Roman",serif;">
</span><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<span style="font-family: Georgia,"Times New Roman",serif;">
</span><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]--><br />
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-size: 12pt;"><b>Example of different data type in C and C++ program</b></span></span></div>
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#include<stdio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#include<conio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">void </span><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">main()</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span></b><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">clrscr()</span><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">;</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> printf("char takes %d byte\n",sizeof(char));</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> printf</span><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">("int takes %d byte\n",sizeof(int));</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> printf("float takes %d byte \n",sizeof(float));</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> printf</span><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">("Double takes %d byte",sizeof(double));</span></span><br />
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> getch(); </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: ""serif"", "serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span>
<span style="font-family: Georgia,"Times New Roman",serif;"><b>Program Output</b></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4oCnENpAGA13x0Lnhl8E27bfpz2TtXRzjqvXrlXbc5JH5N5Uh4qntr6fc-CMTgmYq1WqSB-aHeMt7po-vFr2cQWq6kPjkSmoxpM69wyDJqhn2DYFnwtDXjiTFeI0WVSr2QVHjFnRvPNs/s1600/data.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" m="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4oCnENpAGA13x0Lnhl8E27bfpz2TtXRzjqvXrlXbc5JH5N5Uh4qntr6fc-CMTgmYq1WqSB-aHeMt7po-vFr2cQWq6kPjkSmoxpM69wyDJqhn2DYFnwtDXjiTFeI0WVSr2QVHjFnRvPNs/s1600/data.JPG" true="" /></a></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: justify; text-justify: inter-ideograph;">
<br /></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<br /></div>
<span style="font-family: Times, "Times New Roman", serif;"></span></div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7820468264653202107.post-89456116880034446162011-07-13T03:45:00.000+06:002015-10-13T16:46:54.983+06:00Function in C/C++ Programming<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU8zHsjrayKX3cTNE3Ay74EfPayOAmOkLfYwaDewkhGQuEW1_0K0mZ13ATeNHtvP6jpNfikeQUIyx_tNW1bisZKYDeFyRwiwicYJIxLoXRoo3KhuFMFLOrrBrl7J3spNiHKbotZcN6g0I/s1600/C+and+C%252B%252B+function.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU8zHsjrayKX3cTNE3Ay74EfPayOAmOkLfYwaDewkhGQuEW1_0K0mZ13ATeNHtvP6jpNfikeQUIyx_tNW1bisZKYDeFyRwiwicYJIxLoXRoo3KhuFMFLOrrBrl7J3spNiHKbotZcN6g0I/s1600/C+and+C%252B%252B+function.jpg" /></a></div>
<link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5CSayeed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link><m:smallfrac m:val="off"><m:dispdef><m:lmargin m:val="0"><m:rmargin m:val="0"><m:defjc m:val="centerGroup"></m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac><span style="font-family: Georgia,"Times New Roman",serif;"><b><span style="font-size: 12.0pt;">Function</span></b><span style="font-size: 12.0pt;">
is one of the mostly used keywords in<b><span style="color: black;"> </span></b>C and C++ programming<b>.</b>
Function is used to perform a task into a block statement. There are two types of
function in C and C++ programming.</span></span><br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<ol style="text-align: left;">
<li><span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; mso-bidi-font-family: Georgia; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Georgia;"><span style="mso-list: Ignore;"><span style="font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-synthesis: weight style; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">User defined functio</span></span></li>
<li><span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> Built-in function</span></span></li>
</ol>
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">User Defined Function</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">User defined function
is defined by C and C++ programmer to complete a task into a block statement.
The basic structure of a user defined function is given below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">return_data_type
function_name(argument1, argument1, …)</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">{</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;">
</span>return return_value; </span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">}</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Example of a user defined function</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">int sum(int a, int b)</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span>int c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span>c=a+b;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span>return c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">In the above example,
a user defined function named sum() is declared. The sum() function accepts two
integer arguments and do summation of<span style="mso-spacerun: yes;"> </span>these
two <span style="mso-spacerun: yes;"> </span>values and then return the summation
result to the calling function.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">User defined function
must be called; otherwise the function will not be executed. The function has
to be called with the following rule.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">function_name(argument1, argument2, …);
</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">According to function
calling rule, you can call the above sum() function like below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">int
sum_result=sum(10,15);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Now the sum()
function will return the summation of its argument and put the result into
sum_result variable. </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">User defined function
must be declared before calling function; otherwise program will show an error
message. If you don’t declare user defined function before calling, you must
declare the function prototype. The function prototype declaration rule is
given below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">return_type function_name(argument1,
argument2, …); <span style="mso-spacerun: yes;"> </span></span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">So, the prototype of
your sum() function will be like below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">int sum(int, int);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Example of a user defined function
without prototype</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">#include<stdio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">#include<conio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">//
User defined function declration</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">int
sum(int a, int b)</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>int c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>c=a+b;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>return c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">void
main()</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>clrscr();</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>int sum_result=sum(10,15);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>printf("The summation is:
%d",sum_result);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>getch();</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Example of a user define function with
prototype</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">#include<stdio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">#include<conio.h></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">int
sum(int,int);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">void
main()</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>clrscr();</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>int sum_result=sum(10,15);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>printf("The summation is:
%d",sum_result);</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>getch();</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">//
User defined function declration</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">int
sum(int a, int b)</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">{</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>int c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>c=a+b;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";"><span style="mso-spacerun: yes;"> </span>return c;</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">}</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Courier New";">Program Output</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-UbztAIcwgtrHApzNtoh_ReNzwPQwseHPFW-RHEQnwoc-uXoq5tfzyvKGzcxNZ_NosITSE40Asbmg_me0wj6iSpVMkxi16UdMMHBJsD4tmqWJxmjM8V_YD32UhbMVZdk12wYycupwuiI/s1600/sum+result.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-UbztAIcwgtrHApzNtoh_ReNzwPQwseHPFW-RHEQnwoc-uXoq5tfzyvKGzcxNZ_NosITSE40Asbmg_me0wj6iSpVMkxi16UdMMHBJsD4tmqWJxmjM8V_YD32UhbMVZdk12wYycupwuiI/s320/sum+result.jpg" width="320" /></a></b></div>
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Built-in function</span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">C/C++ provides a lot
of built-in functions which help C/C++ programmer to do their task so easily. <b>Built-in functions are those functions whose definition is predefined and store in the header file</b>. To use built-in function, C/C++ programmers have to know only the function name
and functionality and the header file of that function. Do Google and find required
function name and functionality and the header file that function. Now you are
able to use that function to your program. Some built-in functions those are
frequently used in C/C++ programming are given below.</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Georgia,"Times New Roman",serif;"><span style="font-family: "Georgia","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><a href="http://programming59.blogspot.com/2011/07/printf-function-in-cc-language.html">printf()</a>, cprintf(), puts(),
putchar(), <a href="http://programming59.blogspot.com/2011/07/scanf-function-in-cc-language.html">scanf()</a>, gets(), getchar(), <a href="http://programming59.blogspot.com/2011/07/getch-function-in-cc-language.html">getch()</a>, getche(), <a href="http://programming59.blogspot.com/2011/07/clrscr-function-in-cc-language.html">clrscr()</a>, abs(), sqrt(),
pow(), pow10() ,log(), log10(), sin(), asin(), sinh(), cos(), acos(), cosh() , tan(),
atan(), tanh(), rand(), arand(), randomize()</span></span></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 0.2in;"><tbody>
<tr style="height: 0.05in;"><td style="border: 1pt solid windowtext; height: 0.05in; padding: 0in 5.4pt; width: 109.25pt;" valign="top" width="146"><br /></td> </tr>
</tbody></table>
</div>
Unknownnoreply@blogger.com39