<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8594526389838190654</id><updated>2024-12-19T08:53:58.153+05:30</updated><category term="c programs"/><category term="C Program"/><category term="c"/><category term="c program for Linear array"/><category term="call by value"/><category term="computer and technology"/><category term="cout"/><category term="free programs"/><category term="function calls"/><category term="getch();"/><category term="printf"/><category term="program to demonstrate the working of functions or funcion calls"/><category term="swaping"/><category term="techenical languages"/><category term="2-D array"/><category term="Addition of two matix"/><category term="Area"/><category term="Arithematic operator"/><category term="Basic Data Structure"/><category term="Basic Operations on Linked list"/><category term="C Linked List Implimentation"/><category term="C PROGRAM FOR NUMBERS"/><category term="C Program TO PRINT EVEN NUMBERS FROM 2 TO 40"/><category term="C Program To Print TABLE OF THE NUMBER FEEDED BY USER"/><category term="C Program To get DIVISION According To MARKS OF SUBJECTS"/><category term="C Program for Bubble Sorting"/><category term="C Program for MATRIX MULTIPLICATION"/><category term="C Program for PRINTING PYRAMID OF STARS(*)"/><category term="C Program for Perimeter and area of a circle"/><category term="C Program for determining weather the feeded number is even or odd"/><category term="C Program to FIND SQUARE ROOT of the feeded  number"/><category term="C Program to find AREA  PERIMETER OF A RECTANGLE"/><category term="C Program to find GREATEST OF THREE NUMBERS"/><category term="C Program to illustrate STRUCTURE(DEFINITION AND USAGES)"/><category term="C Program using loop"/><category term="CALL BY REFERANCE"/><category term="Circle using c"/><category term="DENNIS RITCHI"/><category term="Data Structure Using C"/><category term="Dimensions of Circle"/><category term="EVEN NUMBERS"/><category term="EVEN ODD"/><category term="Even"/><category term="Example C Program Of FUNCTION CALL BY VALUE"/><category term="Example c Program for ACCESSING ARRAY USING POINTERS"/><category term="For loop"/><category term="Freshers World"/><category term="GREATEST FINDING PROGRAM"/><category term="Google"/><category term="Iterative Examples"/><category term="Latest Jobs"/><category term="Linked List"/><category term="Linked List using C"/><category term="Matrix"/><category term="Matrix Multiplication"/><category term="Matrix Sum"/><category term="Multiplication of matrix using c"/><category term="ODD NUMBERS"/><category term="Odd"/><category term="Operation on Matrix"/><category term="PRIME NUMBERS"/><category term="Perimeter"/><category term="Program using two dimension array."/><category term="Pyramid"/><category term="Square root"/><category term="accessing array elements"/><category term="all languages"/><category term="all updates"/><category term="area of rectangle"/><category term="array accessing"/><category term="ask your query here."/><category term="c pointers"/><category term="c program for all basic arithematic operations"/><category term="c program to find greatest of numbers"/><category term="calls"/><category term="data"/><category term="data structure"/><category term="dennis rithci"/><category term="dividion from marks"/><category term="e books"/><category term="elements of array"/><category term="example of bubble sort"/><category term="find code"/><category term="find greatest"/><category term="find numbr"/><category term="free c programs"/><category term="free codes"/><category term="free jobs"/><category term="free online money"/><category term="free tutorial"/><category term="get all codes"/><category term="get latest news"/><category term="getting table"/><category term="index number"/><category term="index numbers in an array"/><category term="language"/><category term="languages"/><category term="latest programs"/><category term="marks obtain"/><category term="matrix additioin"/><category term="online guide"/><category term="online teaching"/><category term="perimeter of rectangle"/><category term="pointers"/><category term="procedural oriented"/><category term="program"/><category term="program for table"/><category term="serching"/><category term="simple calculator"/><category term="sorting technique"/><category term="sotring"/><category term="sourse codes"/><category term="structure"/><category term="swapping without using third variable"/><category term="table printing"/><category term="tutorial"/><category term="two dimension array"/><category term="user interactive programs"/><category term="world of programs"/><title type='text'>A B C of C</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-4682162560263955761</id><published>2012-04-14T17:46:00.000+05:30</published><updated>2012-04-14T17:46:08.414+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cout"/><category scheme="http://www.blogger.com/atom/ns#" term="getch();"/><category scheme="http://www.blogger.com/atom/ns#" term="printf"/><category scheme="http://www.blogger.com/atom/ns#" term="swaping"/><category scheme="http://www.blogger.com/atom/ns#" term="swapping without using third variable"/><title type='text'>c++ program to swap two variable WITHOUT using third variable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;C++ Program for swaping the values of two variables using third variable.&lt;br /&gt;
&amp;nbsp;It means that the following code will interchange the values of two varibles.&lt;br /&gt;
&amp;nbsp;Author of this program. Jayant Purohit.&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;Company www.cyberoceanz.com&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;For more porgrames visit&amp;nbsp;&amp;nbsp; www.glanceatc.blogspot.com&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;int first,second;&amp;nbsp;&amp;nbsp; &amp;nbsp;// two variables declared here.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;first=25;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// value of the first varible is assigned here;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;second=45;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// value of the second varible is assigned here;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nvalue of the first variable before swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;first;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nvalue of the second variable before swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;second;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;first=first+second;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;second=first-second;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;first=first-second;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nvalue of the first variable after swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;first;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nvalue of the second variable after swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;second;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
}&lt;br /&gt;
if you have any problem then please feel free to post your comment in the comment box below the post.&lt;br /&gt;
&lt;h4&gt;&lt;a href=&quot;http://www.cyberoceanz.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;Get more News to increase your GK. for campus and competitive Exams.&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/4682162560263955761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2012/04/c-program-to-swap-two-variable-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4682162560263955761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4682162560263955761'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2012/04/c-program-to-swap-two-variable-without.html' title='c++ program to swap two variable WITHOUT using third variable'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-1902512616207382579</id><published>2012-04-14T17:42:00.000+05:30</published><updated>2012-04-14T17:42:59.782+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cout"/><category scheme="http://www.blogger.com/atom/ns#" term="getch();"/><category scheme="http://www.blogger.com/atom/ns#" term="printf"/><category scheme="http://www.blogger.com/atom/ns#" term="swaping"/><title type='text'>c++ program to swap two variable using third variable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;C++ Program for swaping the values of two variables using third variable.&lt;br /&gt;
&amp;nbsp;It means that the following code will interchange the values of two varibles.&lt;br /&gt;
&amp;nbsp;Author of this program. Jayant Purohit.&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;Company www.cyberoceanz.com&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;For more porgrames visit&amp;nbsp;&amp;nbsp; www.glanceatc.blogspot.com&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int first,second,third;&amp;nbsp;&amp;nbsp;&amp;nbsp; // three variables declared here.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; first=25;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // value of the first varible is assigned here;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; second=45;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // value of the second varible is assigned here;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nvalue of the first variable before swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;first;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nvalue of the second variable before swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;second;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; third=first;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; first=second;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; second=third;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nvalue of the first variable after swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;first;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nvalue of the second variable after swapping is :-&amp;gt;&quot;&amp;lt;&amp;lt;second;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if you have any problem then please feel free to post your comment in the comment box below the post.&lt;br /&gt;
&lt;h4&gt;&lt;a href=&quot;http://www.cyberoceanz.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;Get more News to increase your GK. for campus and competitive Exams.&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/1902512616207382579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2012/04/c-program-to-swap-two-variable-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1902512616207382579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1902512616207382579'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2012/04/c-program-to-swap-two-variable-using.html' title='c++ program to swap two variable using third variable'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-5398091282346297618</id><published>2010-12-30T16:31:00.000+05:30</published><updated>2010-12-30T16:31:49.821+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program to illustrate STRUCTURE(DEFINITION AND USAGES)"/><title type='text'>C Program to illustrate STRUCTURE(DEFINITION AND USAGES)</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By:-&amp;gt; Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Hello Friends this is another C Program form my side.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;This program illustrates the working of &quot;Structures&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;In this program the structure name &quot;book&quot; is used and it is assigned a value and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;then i have assigned values to the corresponding variables.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
struct book //defination of the structure&lt;br /&gt;
{&lt;br /&gt;
char name[20];&lt;br /&gt;
int page;&lt;br /&gt;
float price;&lt;br /&gt;
};&lt;br /&gt;
struct book b;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;\nPlease Enter the Name:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%s&quot;,&amp;amp;b.name);&lt;br /&gt;
printf(&quot;\nPlease Enter the Page:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;b.page);&lt;br /&gt;
printf(&quot;\nPlease Enter the Price:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%f&quot;,&amp;amp;b.price);&lt;br /&gt;
printf(&quot;\nThe Values you supplied are:-&amp;gt;&quot;);&lt;br /&gt;
printf(&quot;\n NAME:-&amp;gt;%s&quot;,b.name);&lt;br /&gt;
printf(&quot;\n PAGE:-&amp;gt;%d&quot;,b.page);&lt;br /&gt;
printf(&quot;\n PRICE:-&amp;gt;%f&quot;,b.price);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void linkfloat()&lt;br /&gt;
{&lt;br /&gt;
float a=0,*b;&lt;br /&gt;
b=&amp;amp;a;&lt;br /&gt;
a=*b;&lt;br /&gt;
}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhXmqTrnSEPOxlWX58Fi6gxV92kbRqVsCfWqEQbqbhLI8eecQPaCvpVw2VoO9Tw3VQ_VjP-oUx-tBOABV3KN7DhcUziGinKIDHz8mrBrLoM5Lu7VsEVGuuHUhTF3SQktBOgnNNfNDsBZU/s1600/struct.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhXmqTrnSEPOxlWX58Fi6gxV92kbRqVsCfWqEQbqbhLI8eecQPaCvpVw2VoO9Tw3VQ_VjP-oUx-tBOABV3KN7DhcUziGinKIDHz8mrBrLoM5Lu7VsEVGuuHUhTF3SQktBOgnNNfNDsBZU/s320/struct.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;The Big question is that What the linkfloat function is doing here.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;well for many of c compilers this code will generate linking error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;so that i have just added this function.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;just enjoy the program and have a nice day.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;if this post is helpful to you then plz. dn&#39;t forget to place comment on it.and share it tooo.... &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/5398091282346297618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-illustrate.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5398091282346297618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5398091282346297618'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-illustrate.html' title='C Program to illustrate STRUCTURE(DEFINITION AND USAGES)'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhXmqTrnSEPOxlWX58Fi6gxV92kbRqVsCfWqEQbqbhLI8eecQPaCvpVw2VoO9Tw3VQ_VjP-oUx-tBOABV3KN7DhcUziGinKIDHz8mrBrLoM5Lu7VsEVGuuHUhTF3SQktBOgnNNfNDsBZU/s72-c/struct.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-1054061540360230025</id><published>2010-12-27T18:30:00.000+05:30</published><updated>2010-12-27T18:30:50.098+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program for MATRIX MULTIPLICATION"/><category scheme="http://www.blogger.com/atom/ns#" term="find code"/><category scheme="http://www.blogger.com/atom/ns#" term="free codes"/><category scheme="http://www.blogger.com/atom/ns#" term="get all codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrix"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrix Multiplication"/><category scheme="http://www.blogger.com/atom/ns#" term="Multiplication of matrix using c"/><category scheme="http://www.blogger.com/atom/ns#" term="Operation on Matrix"/><category scheme="http://www.blogger.com/atom/ns#" term="sourse codes"/><title type='text'>C Program for MATRIX MULTIPLICATION..</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;Program by :-&amp;gt; JAYANT PUROHIT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: right;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #0b5394; text-align: left;&quot;&gt;This Program is illustrates the multiplication of two matrix.&lt;/div&gt;&lt;div style=&quot;color: #0b5394; text-align: left;&quot;&gt;It is a generalized program which accepts the values of matrix from users.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;The code is&amp;nbsp; as follow:-&amp;gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:SimSun;
 panose-1:2 1 6 0 3 1 1 1 1 1;
 mso-font-alt:宋体;
 mso-font-charset:134;
 mso-generic-font-family:auto;
 mso-font-pitch:variable;
 mso-font-signature:3 680460288 22 0 262145 0;}
@font-face
 {font-family:&quot;\@SimSun&quot;;
 panose-1:2 1 6 0 3 1 1 1 1 1;
 mso-font-charset:134;
 mso-generic-font-family:auto;
 mso-font-pitch:variable;
 mso-font-signature:3 680460288 22 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:&quot;&quot;;
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-fareast-font-family:SimSun;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
 {margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Courier New&quot;;
 mso-fareast-font-family:SimSun;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 65.95pt 1.0in 65.95pt;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;int a[3][3],b[3][3],c[3][3],r,d;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(r=0;r&amp;lt;3;r++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(d=0;d&amp;lt;3;d++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;printf(&quot;\n Please enter the value of matrix A of position :- &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;a[r][d]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(r=0;r&amp;lt;3;r++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(d=0;d&amp;lt;3;d++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;printf(&quot;\n Please enter the value of matrix B of position :- &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;b[r][d]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(r=0;r&amp;lt;3;r++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(d=0;d&amp;lt;3;d++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;c[r][d]=a[r][0]*b[0][d]+a[r][1]*b[1][d]+a[r][2]*b[2][d];&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;printf(&quot;\n The Matrix Obtained By Multiplication of Feeded Two Matrix is :-&amp;gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;for(d=0;d&amp;lt;3;d++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;printf(&quot;\n\n %d&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&quot;,c[d][0],c[d][1],c[d][2]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: #cc0000;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;The Output of the above program is as follow:-&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1XjcexP7Az1EmtnrhsRFCQkAVTJQBTUfrTvXrHEar-xdKTKZtXvcfY1HopMGfH2KPg0T6eKkANVlf54RmvDsqGPXmM4L-Es_rpOT-dg29ghqfEChj9wxyhJ1B8oDJgwgbm-3KV0JVYWE/s1600/matrix.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;167&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1XjcexP7Az1EmtnrhsRFCQkAVTJQBTUfrTvXrHEar-xdKTKZtXvcfY1HopMGfH2KPg0T6eKkANVlf54RmvDsqGPXmM4L-Es_rpOT-dg29ghqfEChj9wxyhJ1B8oDJgwgbm-3KV0JVYWE/s320/matrix.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;If u r satisfied by this program then do not forget to comment and post your reviews.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;you may also contect me on jforjaxi@yahoo.com&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/1054061540360230025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-matrix-multiplication.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1054061540360230025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1054061540360230025'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-matrix-multiplication.html' title='C Program for MATRIX MULTIPLICATION..'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1XjcexP7Az1EmtnrhsRFCQkAVTJQBTUfrTvXrHEar-xdKTKZtXvcfY1HopMGfH2KPg0T6eKkANVlf54RmvDsqGPXmM4L-Es_rpOT-dg29ghqfEChj9wxyhJ1B8oDJgwgbm-3KV0JVYWE/s72-c/matrix.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-6909063654492214519</id><published>2010-12-24T17:00:00.000+05:30</published><updated>2010-12-24T17:00:58.213+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="2-D array"/><category scheme="http://www.blogger.com/atom/ns#" term="Addition of two matix"/><category scheme="http://www.blogger.com/atom/ns#" term="matrix additioin"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrix Sum"/><category scheme="http://www.blogger.com/atom/ns#" term="Program using two dimension array."/><category scheme="http://www.blogger.com/atom/ns#" term="two dimension array"/><title type='text'>C Program to Sum Of Two Matrix..</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #c27ba0;&quot;&gt;Program By :-&amp;gt; Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;/*This Program is using three arrays(each one is two dimensional array).one for&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;storing values of first matrix,one for storing the values of second matrix and the&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;third one stores the resultant sum of these two matrixes.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In this program the values are not supplied by the user one may change the code&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;according to this requirement. */&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main()&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;//Two Dimension Array to get  hold first Matrix.&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int a[3][3]={12,12,12,2,2,2,15,15,15};&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;//Two Dimension Array to get  hold second Matrix. &lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int b[3][3]={1,1,1,12,12,12,5,5,5};&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;//Two Dimension Arry to get  hold summation Matrix.&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int c[3][3];&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int i,j;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe Matrix A IS:-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\n%d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&quot;,a[i][0],a[i][1],a[i][2]);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe Matrix B IS:-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\n%d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&quot;,b[i][0],b[i][1],b[i][2]);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;c[i][j]=a[i][j]+b[i][j];&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe Resultent Matrix is as follow:-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\n%d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d&quot;,c[i][0],c[i][1],c[i][2]);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/6909063654492214519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-sum-of-two-matrix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6909063654492214519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6909063654492214519'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-sum-of-two-matrix.html' title='C Program to Sum Of Two Matrix..'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-9149213774127242684</id><published>2010-12-21T08:36:00.000+05:30</published><updated>2010-12-21T08:36:03.732+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="area of rectangle"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program to find AREA  PERIMETER OF A RECTANGLE"/><category scheme="http://www.blogger.com/atom/ns#" term="perimeter of rectangle"/><title type='text'>C Program to find AREA &amp; PERIMETER OF A RECTANGLE</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By :- Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: right;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #e06666; text-align: left;&quot;&gt;&amp;nbsp;/*Program to get Perimeter and Area of Rectangle*/&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float len,wid,area,perimeter;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;\nPlease Enter the Length of Rectangle:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%f&quot;,&amp;amp;len);&lt;br /&gt;
printf(&quot;\nPlease Enter the Width of Rectangle:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%f&quot;,&amp;amp;wid);&lt;br /&gt;
area=len*wid;&lt;br /&gt;
perimeter=2*(len+wid);&lt;br /&gt;
printf(&quot;\nThe area of the Rectangle is:-&amp;gt;%f&quot;,area);&lt;br /&gt;
printf(&quot;\nThe Perimeter of the Rectangle is:-&amp;gt;%f&quot;,perimeter);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/9149213774127242684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-area-perimeter-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/9149213774127242684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/9149213774127242684'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-area-perimeter-of.html' title='C Program to find AREA &amp; PERIMETER OF A RECTANGLE'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-5971472744693982092</id><published>2010-12-20T11:02:00.000+05:30</published><updated>2010-12-20T11:02:09.981+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Area"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program for Perimeter and area of a circle"/><category scheme="http://www.blogger.com/atom/ns#" term="Circle using c"/><category scheme="http://www.blogger.com/atom/ns#" term="Dimensions of Circle"/><category scheme="http://www.blogger.com/atom/ns#" term="Perimeter"/><title type='text'>C Program to get Area and Perimeter of a Circle</title><content type='html'>&lt;div style=&quot;color: #e06666;&quot;&gt;  &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666; text-align: right;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #c27ba0;&quot;&gt;Program By -Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;/*Program to get Perimeter and Area of Circle*/&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;void main()&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;{&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;float radius,area,perimeter;&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nPlease Enter the Radius of Circle:-&amp;gt;&quot;);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;scanf(&quot;%f&quot;,&amp;amp;radius);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;area=(3.141*radius*radius);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;perimeter=(2*radius*3.1417);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe area of the Circle is:-&amp;gt;%f&quot;,area);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe Perimeter of the Circle is:-&amp;gt;%f&quot;,perimeter);&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;getch();&lt;o:p _moz-userdefined=&quot;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #e06666;&quot;&gt;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/5971472744693982092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-get-area-and-perimeter-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5971472744693982092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5971472744693982092'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-get-area-and-perimeter-of.html' title='C Program to get Area and Perimeter of a Circle'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-1302858346483026523</id><published>2010-12-18T09:24:00.000+05:30</published><updated>2010-12-18T09:24:13.055+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Basic Operations on Linked list"/><category scheme="http://www.blogger.com/atom/ns#" term="C Linked List Implimentation"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure Using C"/><category scheme="http://www.blogger.com/atom/ns#" term="Linked List"/><category scheme="http://www.blogger.com/atom/ns#" term="Linked List using C"/><title type='text'>C Program For LINKED LIST IMPLEMENTATION (ALL BASIC OPERATIONS)</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By- Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* PROGRAM IMPLEMENTATION OF SINGLE LINKED LIST */&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; #include&quot;stdio.h&quot;&lt;br /&gt;
&amp;nbsp; #define NULL 0&lt;br /&gt;
&amp;nbsp; /* STRUCTURE CONTANING A DATA PART AND A LINK PART */&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; struct node&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int data;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; struct node *next;&lt;br /&gt;
&amp;nbsp;}*p;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;/*THIS FUNCTION DELETES A NODE */&lt;br /&gt;
&lt;br /&gt;
void delnode(int num)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct node *temp, *m;&lt;br /&gt;
temp=p;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(temp!=NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(temp-&amp;gt;data==num)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if(temp==p)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=temp-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; free(temp);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; m-&amp;gt;next=temp-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; free(temp);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; m=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; temp= temp-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; ELEMENT %d NOT FOUND &quot;, num);&lt;br /&gt;
}&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
// To add NEW NODE at Last Node&lt;br /&gt;
void append( int num )&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct node *temp,*r;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp= (struct node *)malloc(sizeof(struct node));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp-&amp;gt;data=num;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=(struct node *)p;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (p == NULL) /* IF LIST IS EMPTY CREATE FIRST NODE */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; p=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;next =NULL;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* GO TO LAST AND ADD*/&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( r-&amp;gt;next != NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=r-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r-&amp;gt;next =temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r-&amp;gt;next=NULL;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }/* ADD A NEW NODE AT BEGINNING&amp;nbsp; */&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; void addbeg( int num )&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; struct node *temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; temp=(struct node *)malloc(sizeof(struct node));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; temp-&amp;gt;data=num;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( p== NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; p=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; p-&amp;gt;next=NULL;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; temp-&amp;gt;next=p;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; p=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;/*&amp;nbsp; ADD A NEW NODE AFTER A SPECIFIED NO OF NODES */&lt;br /&gt;
&lt;br /&gt;
void addafter(int num, int loc)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct node *temp,*t,*r;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=p;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* here r stores the first location */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(loc &amp;gt; count()+1 || loc &amp;lt;= 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot; insertion is not possible : &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (loc == 1)/* if list is null then add at beginning */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; addbeg(num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=1;i&amp;lt;loc;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t=r;&amp;nbsp;&amp;nbsp; /* t will be holding previous value */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=r-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;temp=(struct node *)malloc(sizeof(struct node));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;temp-&amp;gt;data=num;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;t-&amp;gt;next=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;t=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;t-&amp;gt;next=r;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;/* THIS FUNCTION DISPLAYS THE CONTENTS OF THE LINKED LIST */&lt;br /&gt;
&lt;br /&gt;
void display(struct node *r)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=p;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(r==NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;NO ELEMENT IN THE LIST :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* traverse the entire linked list */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(r!=NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; -&amp;gt; %d &quot;,r-&amp;gt;data);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=r-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
//THIS FUNCTION COUNTS THE NUMBER OF ELEMENTS IN THE LIST&lt;br /&gt;
&amp;nbsp;count()&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; struct node *n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int c=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; n=p;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; while(n!=NULL)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=n-&amp;gt;next;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; return(c);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
//THIS FUNCTION REVERSES A LINKED LIST&lt;br /&gt;
void reverse(struct node *q)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; struct node *m, *n,*l,*s;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; m=q;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; n=NULL;&lt;br /&gt;
&amp;nbsp; while(m!=NULL)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; s=n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; n=m;&lt;br /&gt;
&amp;nbsp; m=m-&amp;gt;next;&lt;br /&gt;
&amp;nbsp; n-&amp;gt;next=s;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; p=n;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/* THIS IS THE MAIN PROGRAM&amp;nbsp; */&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; main()&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; p=NULL;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; while(1) /* this is an indefinite loop */&lt;br /&gt;
&amp;nbsp;{&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  //TO CREATE A MENU FOR DISPLAY..&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 1.INSERT A NUMBER AT BEGINNING;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 2.INSERT A NUMBER AT LAST:&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 3.INSERT A NUMBER AT A PARTICULAR LOCATION INlIST:&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 4.PRINT THE ELEMENTS IN THE LIST :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 5.PRINT THE NUMBER OF ELEMENTS IN THE LIST&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 6.DELETE A NODE IN THE LINKED LIST:&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 7.REVERSE A LINKED LIST :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n 8.GET OUT OF LINKED LIST (BYEE BYEE):&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n PLEASE, ENTER THE NUMBER:&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;i); /* ENTER A VALUE FOR SWITCH&amp;nbsp; */&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(i)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;case 1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int num;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; PLEASE ENTER THE NUMBER :-&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; addbeg(num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; case 2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int num;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot; PLEASE ENTER THE NUMBER :-&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;append(num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; case 3:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int num, loc,k;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; PLEASE ENTER THE NUMBER :-&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;PLEASE ENTER THE LOCATION NUMBER :-&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;loc);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addafter(num,loc);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; case 4:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;struct node *n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;THE&amp;nbsp; ELEMENTS IN THE LIST ARE :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;display(n);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 5:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct node *n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display(n);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; TOTAL NO OF ELEMENTS IN THE LSIT ARE %d&quot;,count());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; } case 6:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp;&amp;nbsp;&amp;nbsp; num;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; PLEASE ENTER A NUMBER FROM THE LIST :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delnode(num);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; case 7:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reverse(p);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; display(p);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; case 8:&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; exit();&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }/* end if switch */&lt;br /&gt;
&amp;nbsp;}/* end of while */&lt;br /&gt;
}/* end of main&lt;br /&gt;
&amp;nbsp;*/&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/1302858346483026523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-linked-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1302858346483026523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1302858346483026523'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-linked-list.html' title='C Program For LINKED LIST IMPLEMENTATION (ALL BASIC OPERATIONS)'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-8151926165062964225</id><published>2010-12-16T08:33:00.000+05:30</published><updated>2010-12-16T08:33:40.891+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program for PRINTING PYRAMID OF STARS(*)"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program using loop"/><category scheme="http://www.blogger.com/atom/ns#" term="For loop"/><category scheme="http://www.blogger.com/atom/ns#" term="Iterative Examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Pyramid"/><title type='text'>C Program for PRINTING PYRAMID OF STARS(*)</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #c27ba0;&quot;&gt;Program by :- Jayant Purohit &lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int i,ch,j;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;:-Please enter the numbers of rows you want into the pyramid:-&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;ch);&lt;br /&gt;
for(j=1;j&amp;lt;=ch;j++)&lt;br /&gt;
{&lt;br /&gt;
for(i=1;i&amp;lt;=j;i++)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;*&quot;);&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;&lt;div style=&quot;color: #cc0000; text-align: right;&quot;&gt;contact me at :- jforjaxi@yahoo.com&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/8151926165062964225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-printing-pyramid-of-stars.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/8151926165062964225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/8151926165062964225'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-printing-pyramid-of-stars.html' title='C Program for PRINTING PYRAMID OF STARS(*)'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-6265846043732499523</id><published>2010-12-14T20:39:00.000+05:30</published><updated>2010-12-14T20:39:06.989+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="accessing array elements"/><category scheme="http://www.blogger.com/atom/ns#" term="array accessing"/><category scheme="http://www.blogger.com/atom/ns#" term="c pointers"/><category scheme="http://www.blogger.com/atom/ns#" term="c program for Linear array"/><category scheme="http://www.blogger.com/atom/ns#" term="elements of array"/><category scheme="http://www.blogger.com/atom/ns#" term="Example c Program for ACCESSING ARRAY USING POINTERS"/><category scheme="http://www.blogger.com/atom/ns#" term="index number"/><category scheme="http://www.blogger.com/atom/ns#" term="index numbers in an array"/><category scheme="http://www.blogger.com/atom/ns#" term="pointers"/><title type='text'>Example c Program for ACCESSING ARRAY USING POINTERS</title><content type='html'>&lt;div style=&quot;color: #e06666; text-align: right;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: #c27ba0;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #c27ba0;&quot;&gt;Program By- Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #e06666;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int array[5],i,*p;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;Please enter Five elements of array now&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;\nenter number:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;array[i]);&lt;br /&gt;
}&lt;br /&gt;
p=array;&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;\nThe elemnt at index number %d is :-&amp;gt;%d&quot;,i,*p);&lt;br /&gt;
p++;&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/6265846043732499523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/example-c-program-for-accessing-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6265846043732499523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6265846043732499523'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/example-c-program-for-accessing-array.html' title='Example c Program for ACCESSING ARRAY USING POINTERS'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-5728386701617892727</id><published>2010-12-14T20:28:00.000+05:30</published><updated>2010-12-14T20:28:15.032+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C PROGRAM FOR NUMBERS"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program TO PRINT EVEN NUMBERS FROM 2 TO 40"/><category scheme="http://www.blogger.com/atom/ns#" term="EVEN NUMBERS"/><category scheme="http://www.blogger.com/atom/ns#" term="EVEN ODD"/><category scheme="http://www.blogger.com/atom/ns#" term="ODD NUMBERS"/><category scheme="http://www.blogger.com/atom/ns#" term="PRIME NUMBERS"/><title type='text'>C Program TO PRINT EVEN NUMBERS FROM 2 TO 40</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By :-&amp;gt; Jayant Purohit&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int my_fun(int,int);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main()&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int i;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(i=2;i&amp;lt;41;i++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;if(i%2==0)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\nThe Even number is:-&amp;gt;%d&quot;,i);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/5728386701617892727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-print-even-numbers-from-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5728386701617892727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5728386701617892727'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-print-even-numbers-from-2.html' title='C Program TO PRINT EVEN NUMBERS FROM 2 TO 40'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-1148034014410639516</id><published>2010-12-14T20:22:00.000+05:30</published><updated>2010-12-14T20:22:57.891+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CALL BY REFERANCE"/><category scheme="http://www.blogger.com/atom/ns#" term="call by value"/><category scheme="http://www.blogger.com/atom/ns#" term="DENNIS RITCHI"/><category scheme="http://www.blogger.com/atom/ns#" term="Example C Program Of FUNCTION CALL BY VALUE"/><category scheme="http://www.blogger.com/atom/ns#" term="function calls"/><category scheme="http://www.blogger.com/atom/ns#" term="program to demonstrate the working of functions or funcion calls"/><title type='text'>Example C Program Of FUNCTION CALL BY VALUE</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #c27ba0;&quot;&gt;Program By-Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int my_fun(int,int);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main()&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int ch1,ch2,result;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;Please enter the first number :-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;ch1);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;Please enter the second number :-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;ch2);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;result=my_fun(ch1,ch2);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;The result of the sum is :-&amp;gt;%d&quot;,result);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int my_fun(int a,int b)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;return(a+b);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/1148034014410639516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/example-c-program-of-function-call-by.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1148034014410639516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/1148034014410639516'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/example-c-program-of-function-call-by.html' title='Example C Program Of FUNCTION CALL BY VALUE'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-4379692156921575019</id><published>2010-12-14T20:13:00.000+05:30</published><updated>2010-12-14T20:18:10.713+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="c program to find greatest of numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program to find GREATEST OF THREE NUMBERS"/><category scheme="http://www.blogger.com/atom/ns#" term="find greatest"/><category scheme="http://www.blogger.com/atom/ns#" term="find numbr"/><category scheme="http://www.blogger.com/atom/ns#" term="GREATEST FINDING PROGRAM"/><title type='text'>C Program to find GREATEST OF THREE NUMBERS..</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By-Jayant Purohit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;int ch1,ch2,ch3,n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;Please enter the first number :-&amp;gt;&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;ch1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;Please enter the second number :-&amp;gt;&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;ch2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;Please enter the third number :-&amp;gt;&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;ch3);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;if(ch1&amp;gt;ch2 &amp;amp;&amp;amp; ch1&amp;gt;ch3)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;The first Number(%d) is the greatest Number anomg all numbers&quot;,ch1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;if(ch2&amp;gt;ch1 &amp;amp;&amp;amp; ch2&amp;gt;ch3)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;The second Number(%d) is the greatest Number anomg all numbers&quot;,ch2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;printf(&quot;The third Number(%d) is the greatest Number anomg all numbers&quot;,ch3);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #cc0000;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/4379692156921575019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-greatest-of-three.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4379692156921575019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4379692156921575019'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-greatest-of-three.html' title='C Program to find GREATEST OF THREE NUMBERS..'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-3494594140418286900</id><published>2010-12-14T20:00:00.000+05:30</published><updated>2010-12-14T20:00:13.685+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program To Print TABLE OF THE NUMBER FEEDED BY USER"/><category scheme="http://www.blogger.com/atom/ns#" term="getting table"/><category scheme="http://www.blogger.com/atom/ns#" term="program for table"/><category scheme="http://www.blogger.com/atom/ns#" term="table printing"/><category scheme="http://www.blogger.com/atom/ns#" term="user interactive programs"/><category scheme="http://www.blogger.com/atom/ns#" term="world of programs"/><title type='text'>C Program To Print TABLE OF THE NUMBER FEEDED BY USER</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program by :- Jayant Purohit&lt;/span&gt; &lt;/div&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main()&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int table,n;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;Please enter the number whose table you want to Print:-&amp;gt;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;table);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;for(n=1;n&amp;lt;11;n++)&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;\n\n%d MULTIPLIED BY %d IS :-&amp;gt;%d&quot;,table,n,table*n);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/3494594140418286900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-print-table-of-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/3494594140418286900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/3494594140418286900'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-print-table-of-number.html' title='C Program To Print TABLE OF THE NUMBER FEEDED BY USER'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-5909468038621504033</id><published>2010-12-14T19:52:00.000+05:30</published><updated>2010-12-14T19:52:46.517+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program To get DIVISION According To MARKS OF SUBJECTS"/><category scheme="http://www.blogger.com/atom/ns#" term="c programs"/><category scheme="http://www.blogger.com/atom/ns#" term="dividion from marks"/><category scheme="http://www.blogger.com/atom/ns#" term="free jobs"/><category scheme="http://www.blogger.com/atom/ns#" term="free online money"/><category scheme="http://www.blogger.com/atom/ns#" term="get latest news"/><category scheme="http://www.blogger.com/atom/ns#" term="marks obtain"/><title type='text'>C Program To get DIVISION According To MARKS OF SUBJECTS</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Program By-Jayant Purohit&lt;/span&gt; &lt;/div&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main( )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;int&amp;nbsp; m1, m2, m3, m4, m5, per ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;printf ( &quot;Enter marks in five subjects &quot; ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;scanf ( &quot;%d %d %d %d %d&quot;, &amp;amp;m1, &amp;amp;m2, &amp;amp;m3, &amp;amp;m4, &amp;amp;m5 ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;per = ( m1 + m2 + m3 + m4 + m5 ) / 5 ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;if ( per &amp;gt;= 60 )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp; printf ( &quot;First division&quot; ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;if ( ( per &amp;gt;= 50 ) &amp;amp;&amp;amp; ( per &amp;lt; 60 ) )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp; printf ( &quot;Second division&quot; ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;if ( ( per &amp;gt;= 40 ) &amp;amp;&amp;amp; ( per &amp;lt; 50 ) )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp; printf ( &quot;Third division&quot; ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;if ( per &amp;lt; 40 )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp; printf ( &quot;Fail&quot; ) ;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/5909468038621504033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-get-division-according-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5909468038621504033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/5909468038621504033'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-get-division-according-to.html' title='C Program To get DIVISION According To MARKS OF SUBJECTS'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-6020483510626674022</id><published>2010-12-14T19:37:00.000+05:30</published><updated>2010-12-14T19:37:22.431+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="all languages"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program to FIND SQUARE ROOT of the feeded  number"/><category scheme="http://www.blogger.com/atom/ns#" term="c programs"/><category scheme="http://www.blogger.com/atom/ns#" term="free c programs"/><category scheme="http://www.blogger.com/atom/ns#" term="Square root"/><title type='text'>C Program to FIND SQUARE ROOT of the feeded  number...</title><content type='html'>&lt;div style=&quot;color: #c27ba0; text-align: right;&quot;&gt;program by-Jayant&lt;/div&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;#include&amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;void main( )&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;int c;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;float a;&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;clrscr();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;Please enter the value whose square root you want to know&quot;);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;c);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;a=sqrt(c);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;printf(&quot;The Square Root of the given Number Is:-&amp;gt;%f&quot;,a);&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;getch();&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #e06666;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/6020483510626674022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-square-root-of-feeded.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6020483510626674022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6020483510626674022'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-find-square-root-of-feeded.html' title='C Program to FIND SQUARE ROOT of the feeded  number...'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-6940491269954955753</id><published>2010-12-13T10:53:00.000+05:30</published><updated>2010-12-13T10:53:02.275+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="c program for Linear array"/><category scheme="http://www.blogger.com/atom/ns#" term="data"/><category scheme="http://www.blogger.com/atom/ns#" term="data structure"/><category scheme="http://www.blogger.com/atom/ns#" term="e books"/><category scheme="http://www.blogger.com/atom/ns#" term="free programs"/><category scheme="http://www.blogger.com/atom/ns#" term="languages"/><category scheme="http://www.blogger.com/atom/ns#" term="serching"/><category scheme="http://www.blogger.com/atom/ns#" term="sotring"/><category scheme="http://www.blogger.com/atom/ns#" term="structure"/><category scheme="http://www.blogger.com/atom/ns#" term="techenical languages"/><title type='text'>C Program for Linear Search....</title><content type='html'>&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #674ea7;&quot;&gt;Program by -&lt;/span&gt;&lt;u style=&quot;color: #674ea7;&quot;&gt;Jayant&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int arr[50],i,lim,find,flag=0,loc,value;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //variable declaration&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;Please enter the maximum number of elements of array you want to insert:-&amp;gt;&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;lim);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;lim;i++)&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //loop for feeding values into the array&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt; &amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nPlease enter the element of the array now:-&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;arr[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
printf(&quot;\nPlease enter that element you want to search into the array&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;find);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;lim;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;  &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(find==arr[i])&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //base condition for checking availability &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag=5;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; loc=i+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(flag)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nthe value you intered is into this array&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nthe value of that item is %d and the location is %d&quot;,find,loc);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;element not found&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/6940491269954955753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-linear-search.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6940491269954955753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6940491269954955753'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-linear-search.html' title='C Program for Linear Search....'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-2855906112209963052</id><published>2010-12-08T10:21:00.000+05:30</published><updated>2010-12-08T10:23:48.862+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Program"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program for determining weather the feeded number is even or odd"/><category scheme="http://www.blogger.com/atom/ns#" term="computer and technology"/><category scheme="http://www.blogger.com/atom/ns#" term="Even"/><category scheme="http://www.blogger.com/atom/ns#" term="Freshers World"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Latest Jobs"/><category scheme="http://www.blogger.com/atom/ns#" term="Odd"/><title type='text'>C program for determining weather the feeded number is Even or Odd..</title><content type='html'>&lt;div style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;void main()&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;int value;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;clrscr();&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;printf(&quot;Please enter a value you want to evaluate:-&amp;gt;&quot;) ;&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;value) ;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //to catch the value of the user&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(value%2= =0)&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //condition for checking even and odd.&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;  {&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;The feeded value is Even&quot;);&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;The feeded value is Odd&quot;); &lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;getch();&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  //To hold output console intact untill u press any key from keyboard&lt;/div&gt;&lt;div style=&quot;color: #cc0000;&quot;&gt;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/2855906112209963052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-determining-weather.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/2855906112209963052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/2855906112209963052'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-determining-weather.html' title='C program for determining weather the feeded number is Even or Odd..'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-6979937963290717028</id><published>2010-12-06T22:29:00.000+05:30</published><updated>2010-12-06T22:29:00.259+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arithematic operator"/><category scheme="http://www.blogger.com/atom/ns#" term="C Program"/><category scheme="http://www.blogger.com/atom/ns#" term="c program for all basic arithematic operations"/><category scheme="http://www.blogger.com/atom/ns#" term="call by value"/><category scheme="http://www.blogger.com/atom/ns#" term="calls"/><category scheme="http://www.blogger.com/atom/ns#" term="function calls"/><category scheme="http://www.blogger.com/atom/ns#" term="program to demonstrate the working of functions or funcion calls"/><category scheme="http://www.blogger.com/atom/ns#" term="simple calculator"/><title type='text'>C Program for All Basic Arithematic Operations...(Mini-Calculator)</title><content type='html'>&lt;div style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int addition(int,int);&lt;br /&gt;
int subst(int,int);&lt;br /&gt;
int multiplication(int,int );&lt;br /&gt;
int divid(int,int);&lt;span style=&quot;background-color: #9fc5e8;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
int modulus(int,int);&lt;br /&gt;
int temp;&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int v1,v2,ch,i,sum;&lt;br /&gt;
i=66;&lt;br /&gt;
do&lt;br /&gt;
{&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;-Wel come to the world of Jax -\n&quot;);&lt;br /&gt;
hello :&lt;br /&gt;
printf(&quot;\nPlease Enter the First value&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;v1);&lt;br /&gt;
printf(&quot;\nPlease Enter the Second value&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;v2);&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\nPlease enter the mode of operation\n&quot;);&lt;br /&gt;
printf(&quot;\nPress 1 for&amp;nbsp; Addition&quot;);&lt;br /&gt;
printf(&quot;\nPress 2 for&amp;nbsp; Sub&quot;);&lt;br /&gt;
printf(&quot;\nPress 3 for&amp;nbsp; Devidsion&quot;);&lt;br /&gt;
printf(&quot;\nPress 4 for&amp;nbsp; Mul&quot;);&lt;br /&gt;
printf(&quot;\nPress 5 for&amp;nbsp; Mod\n\n&quot;);&lt;br /&gt;
&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;ch);&lt;br /&gt;
switch(ch)&lt;br /&gt;
{&lt;br /&gt;
case 1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=addition(v1,v2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe Sum of values is :-&amp;gt;%d&quot;,sum);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=subst(v1,v2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe Subtraction of values is :-&amp;gt;%d&quot;,sum);&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
case 3:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=divid(v1,v2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe Division of values is :-&amp;gt;%d&quot;,sum);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 4:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=multiplication(v1,v2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe Multiplication of values is :-&amp;gt;%d&quot;,sum);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 5:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=modulus(v1,v2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe Modulus of values is :-&amp;gt;%d&quot;,sum);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
default:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nYou Entered a Wrong choise\n &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; goto hello;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\nIf u wana Continue then press 11&quot;);&lt;br /&gt;
printf(&quot;\nIf u wana Exit then press 0&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;i);&lt;br /&gt;
if (i==0)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;Thanks for using our calci have a very nice time&quot;);&lt;br /&gt;
}&lt;br /&gt;
}while(i&amp;gt;0);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int addition(int p,int q)&lt;br /&gt;
{&lt;br /&gt;
temp=p+q;&lt;br /&gt;
return(temp);&lt;br /&gt;
}&lt;br /&gt;
int subst(int p,int q)&lt;br /&gt;
{&lt;br /&gt;
temp=p-q;&lt;br /&gt;
return(temp);&lt;br /&gt;
}&lt;br /&gt;
int multiplication(int p,int q)&lt;br /&gt;
{&lt;br /&gt;
temp=p*q;&lt;br /&gt;
return(temp);&lt;br /&gt;
}&lt;br /&gt;
int divid(int p,int q)&lt;br /&gt;
{&lt;br /&gt;
return(p/q);&lt;br /&gt;
}&lt;br /&gt;
int modulus(int p,int q)&lt;br /&gt;
{&lt;br /&gt;
temp=p%q;&lt;br /&gt;
return(temp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/6979937963290717028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-all-basic-arithematic.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6979937963290717028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/6979937963290717028'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-all-basic-arithematic.html' title='C Program for All Basic Arithematic Operations...(Mini-Calculator)'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-4157825977624232012</id><published>2010-12-06T11:40:00.000+05:30</published><updated>2010-12-06T22:37:31.569+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="all updates"/><category scheme="http://www.blogger.com/atom/ns#" term="ask your query here."/><category scheme="http://www.blogger.com/atom/ns#" term="C Program for Bubble Sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="c programs"/><category scheme="http://www.blogger.com/atom/ns#" term="example of bubble sort"/><category scheme="http://www.blogger.com/atom/ns#" term="free programs"/><category scheme="http://www.blogger.com/atom/ns#" term="free tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="latest programs"/><category scheme="http://www.blogger.com/atom/ns#" term="sorting technique"/><category scheme="http://www.blogger.com/atom/ns#" term="techenical languages"/><title type='text'>C Program for Bubble Sort...</title><content type='html'>Program for Bubble Sort :-&amp;gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int ar[50],i,j,n,temp,pass;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;Enter Maximum number of elements u want to insert into the array&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
printf(&quot;\nplease enter the values of your array now:-&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;ar[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //External loop for passes&lt;br /&gt;
&amp;nbsp; { &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;n-i;j++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Inner loop for traversing&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ar[j]&amp;gt;ar[j+1])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp=ar[j];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //code to swap the values of corresponding&amp;nbsp; places.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ar[j]=ar[j+1];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ar[j+1]=temp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;\n%d&quot;,ar[i]);&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;Enjoy your program..</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/4157825977624232012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-bubble-sort.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4157825977624232012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/4157825977624232012'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-for-bubble-sort.html' title='C Program for Bubble Sort...'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594526389838190654.post-2048593648403815421</id><published>2010-12-05T19:12:00.000+05:30</published><updated>2010-12-05T19:16:59.493+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="computer and technology"/><category scheme="http://www.blogger.com/atom/ns#" term="dennis rithci"/><category scheme="http://www.blogger.com/atom/ns#" term="language"/><category scheme="http://www.blogger.com/atom/ns#" term="online guide"/><category scheme="http://www.blogger.com/atom/ns#" term="online teaching"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural oriented"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>C Program to sum two numbers...</title><content type='html'>Well friends thanks to visit my blog...&lt;br /&gt;
Here is your c program to sum(in fact to add,divide,subtract,multiply).&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #a64d79;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;void main()&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;int a,b,c;&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;clrscr();&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;a=20;&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;b=30;&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;c=a+b;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //you can change the operator here and get the desired answer and program...&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;printf(&quot;The sum is :-&amp;gt;%d&quot;,c);&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;getch();&lt;/div&gt;&lt;div style=&quot;color: #a64d79;&quot;&gt;}&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
well i hope u r satisfied now and if not and u have more queries then meet me online @&lt;br /&gt;
&lt;br /&gt;
jforjaxi@gmail.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on orkut&lt;br /&gt;
jforjaxi@gmail.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on facebook&lt;br /&gt;
or you can mail me&amp;nbsp;&amp;nbsp;&amp;nbsp; @ jayantpurohit21@gmail.com&lt;br /&gt;
&lt;br /&gt;
and please put your name and city in the subject field if u r putting mail to me...</content><link rel='replies' type='application/atom+xml' href='http://glanceatc.blogspot.com/feeds/2048593648403815421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-sum-two-numbers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/2048593648403815421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594526389838190654/posts/default/2048593648403815421'/><link rel='alternate' type='text/html' href='http://glanceatc.blogspot.com/2010/12/c-program-to-sum-two-numbers.html' title='C Program to sum two numbers...'/><author><name>.</name><uri>http://www.blogger.com/profile/14591950016926698563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>