<?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: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-4748214753933441199</id><updated>2011-11-30T23:34:01.653-08:00</updated><category term='for loop in c'/><category term='if statement'/><category term='break statement'/><category term='computer programming'/><category term='first program'/><category term='switch statement'/><category term='c loops'/><category term='c language'/><category term='continue statement'/><category term='while loop in c'/><category term='programming language'/><category term='constants'/><category term='loops in c'/><category term='programming languages'/><category term='variables'/><category term='control structure'/><category term='do while loop in c'/><title type='text'>Introduction to C Language</title><subtitle type='html'>introduction to c programming, c tutorial, c examples, c references, learning c.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-6922635703390234832</id><published>2009-02-01T09:11:00.002-08:00</published><updated>2011-11-29T09:24:39.533-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='computer programming'/><category scheme='http://www.blogger.com/atom/ns#' term='programming language'/><category scheme='http://www.blogger.com/atom/ns#' term='c language'/><title type='text'>Introduction to c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;C was developed by Dennis Ritchie at Bell Laboratories in 1972. Most of its principles and ideas were taken from the earlier language B, BCPL and CPL. CPL was developed jointly between the Mathematical Laboratory at the University of Cambridge and the University of London Computer Unit in 1960s. CPL (Combined Programming Language) was developed with the purpose of creating a language that was capable of both machine independent programming and would allow the programmer to control the behavior of individual bits of information. But the CPL was too large for use in many applications. In 1967, BCPL (Basic Combined Programming Language) was created as a scaled down version of CPL while still retaining its basic features. This process was continued by Ken Thompson. He made B Language during working at Bell Labs. B Language was a scaled down version of BCPL. B Language was written for the systems programming. In 1972, a co-worker of Ken Thompson, Dennis Ritchie developed C Language by taking some of the generality found in BCPL to the B language.&lt;br /&gt;&lt;br /&gt;The original PDP-11 version of the Unix system was developed in assembly language. In 1973, C language had become powerful enough that most of the Unix kernel was rewritten in C. This was one of the first operating system kernels implemented in a language other than assembly.&lt;br /&gt;&lt;br /&gt;During the rest of the 1970's, C spread throughout many colleges and universities because of its close ties to UNIX and the availability of C compilers. Soon, many different organizations began using their own versions of C Language. This was causing great compatibility problems. In 1983, the American National Standards Institute (ANSI) formed a committee to establish a standard definition of C Language. That is known as ANSI Standard C. Today C is the most widely used System Programming Language.&lt;br /&gt;&lt;a href='http://www.studiesinn.com/'&gt;c tutorial&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-6922635703390234832?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/6922635703390234832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=6922635703390234832&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6922635703390234832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6922635703390234832'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/introduction_01.html' title='Introduction to c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-411290556533548227</id><published>2009-02-01T09:11:00.001-08:00</published><updated>2011-11-29T09:25:42.976-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='computer programming'/><category scheme='http://www.blogger.com/atom/ns#' term='programming language'/><category scheme='http://www.blogger.com/atom/ns#' term='first program'/><category scheme='http://www.blogger.com/atom/ns#' term='c language'/><title type='text'>First Program using c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;Here is your first c program. Write carefully because C Language is a case sensative language.&lt;br /&gt;#include &lt;&gt;&lt;br /&gt;void main()&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;   printf("Hello World\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Press ALT+F9 to compile your program. If you have any error in your program, you will get the message, remove your errors and then execute your program you will got the out put.&lt;br /&gt;&lt;br /&gt;Hello World&lt;br /&gt;printf()&lt;br /&gt;The printf() function prints output to stdout, according to format and other arguments passed to printf(). The string format consists of two types of items - characters that will be printed to the screen, and format commands that define how the other arguments to printf() are displayed.&lt;br /&gt;&lt;br /&gt;printf( "Hello World’ );&lt;br /&gt;&lt;br /&gt;scanf()&lt;br /&gt;The scanf() function reads input from stdin, according to the given format, and stores the data in the other arguments. It works a lot like printf(). The format string consists of control characters, whitespace characters, and non-whitespace characters.&lt;br /&gt;&lt;br /&gt;void main(void)&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;scanf(“%d”,&amp;amp;i);&lt;br /&gt;printf(“%d”,i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.studiesinn.com'&gt;c tutorial&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-411290556533548227?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/411290556533548227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=411290556533548227&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/411290556533548227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/411290556533548227'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/first-program_01.html' title='First Program using c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-6306117530849232094</id><published>2009-02-01T09:09:00.000-08:00</published><updated>2011-11-29T09:26:11.851-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='computer programming'/><category scheme='http://www.blogger.com/atom/ns#' term='programming language'/><category scheme='http://www.blogger.com/atom/ns#' term='c language'/><category scheme='http://www.blogger.com/atom/ns#' term='constants'/><category scheme='http://www.blogger.com/atom/ns#' term='variables'/><title type='text'>Constants and Variables</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;The alphabets, numbers and special symbols when properly combined form constants, variables and keywords. A constant is an entity that does not change.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Variables:&lt;/span&gt;&lt;br /&gt;A variable is an entity that may change it value. In any program we typically do lots of calculations. The results of these calculations are stored in computer memory locations. To make the retrieval and usage of these values we give names to the memory locations. These names are called variables.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Keywords:&lt;/span&gt;&lt;br /&gt;A keyword is a word that is part of C Language itself. These words have predefined meanings and these words cannot be used as variable names.&lt;br /&gt;&lt;table summary="" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="4" valign="top" width="590"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;C Keywords&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;char&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;signed&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;break&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;for&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;auto&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;const&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;sizeof&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;case&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;if&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;extern&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;double&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;struct&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;continue&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;goto&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;register&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;enum&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;typedef&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;default&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;return&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;static&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;float&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;union&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;do&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;switch&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;volatile&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;unsigned&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;else&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;while&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;void&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" width="148"&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;short&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Types of Variables&lt;/span&gt;&lt;br /&gt;There are two main types of variables in C: numeric variables that hold only numbers or values, and string variables that hold text, from one to several characters long.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Basic fundamental data types in C Language&lt;br /&gt;&lt;/span&gt;&lt;table summary="" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;tr&gt;&lt;td width="100"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Name&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Description&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Size&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Range&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;char&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Character or small integer.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;1byte&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;signed: -128 to 127&lt;br /&gt;unsigned: 0 to 255&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;short int&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Short Integer.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;2bytes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;signed: -32768 to 32767&lt;br /&gt;unsigned: 0 to 65535&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;long int (long)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Long integer.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;4bytes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;signed: -2147483648 to 2147483647&lt;br /&gt;unsigned: 0 to 4294967295&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;bool&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Boolean value. It can take one of two values: true or false.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;1byte&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;true or false&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;float&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Floating point number.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;4bytes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;+/- 3.4e +/- 38 (~7 digits)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;double&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Double precision floating point number.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;8bytes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;+/- 1.7e +/- 308 (~15 digits)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="137"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;long double&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="211"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Long double precision floating point number.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;8bytes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;+/- 1.7e +/- 308 (~15 digits)&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;/a&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-6306117530849232094?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/6306117530849232094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=6306117530849232094&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6306117530849232094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6306117530849232094'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/c-constants-alphabets-numbers-and.html' title='Constants and Variables'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-5958474305937182172</id><published>2009-02-01T09:08:00.000-08:00</published><updated>2011-11-29T09:26:13.510-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='do while loop in c'/><category scheme='http://www.blogger.com/atom/ns#' term='for loop in c'/><category scheme='http://www.blogger.com/atom/ns#' term='while loop in c'/><category scheme='http://www.blogger.com/atom/ns#' term='c loops'/><category scheme='http://www.blogger.com/atom/ns#' term='loops in c'/><title type='text'>Loops in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;Loops are used to repeat one statement or set statements more than one time. Most real programs contain some construct that loops within the program, performing repetitive actions on a stream of data or a region of memory. There are several ways to loop in C.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;For Loop&lt;/span&gt;&lt;br /&gt;For loop is a counter loop. The for loop allows automatic initialization of instrumentation of a counter variable. The general form is&lt;br /&gt;&lt;br /&gt;for (initialization; condition; increment/decrement)&lt;br /&gt;{&lt;br /&gt;statements block&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;If the statement block is only one statement, the braces are not necessary. Although the for allows a number of variations, generally the initialization is used to set a counter variable to its starting value. The condition is generally a relational statement that checks the counter variable against a termination value, and the increment increments (or decrements) the counter value. The loop repeats until the condition becomes false.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;Main(){&lt;br /&gt;int i;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;        for(i = 0; i &lt; count; i++)&lt;br /&gt;            {         &lt;br /&gt;                printf(“%d\n”,i);&lt;br /&gt;            }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;While Loop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The while loop repeats a statement until the test at the top proves false.&lt;br /&gt;The while loop has the general form:&lt;br /&gt;while(condition)&lt;br /&gt;{&lt;br /&gt;statement block&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The while tests its condition at the top of the loops. Therefore, if the condition is false to begin with, the loop will not execute at all. The condition may be any expression. An example of a while follows. It reads characters until end-of-file is encountered.&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;main(){&lt;br /&gt;int t = 0;&lt;br /&gt;&lt;br /&gt;while(t&lt;=10) {           printf(“%d\n”,t);  t=t+1; }  }  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;do-while loop&lt;/span&gt;&lt;br /&gt;This is very similar to the while loop except that the test occurs at the end of the loop body. This guarantees that the loop is executed at least once before continuing. Such a setup is frequently used where data is to be read. The test then verifies the data, and loops back to read again if it was unacceptable.&lt;br /&gt;&lt;br /&gt;void main(void){&lt;br /&gt;&lt;br /&gt;int val;&lt;br /&gt;do&lt;br /&gt;{       printf("Enter 1 to continue and 0 to exit :");&lt;br /&gt;  scanf("%d\n", &amp;amp;val);&lt;br /&gt;} while (val!= 1 &amp;amp;&amp;amp; val!= 0)&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-5958474305937182172?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/5958474305937182172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=5958474305937182172&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/5958474305937182172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/5958474305937182172'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/loops.html' title='Loops in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-4358440670895941036</id><published>2009-02-01T09:07:00.000-08:00</published><updated>2011-11-29T09:26:33.387-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='continue statement'/><category scheme='http://www.blogger.com/atom/ns#' term='computer programming'/><category scheme='http://www.blogger.com/atom/ns#' term='switch statement'/><category scheme='http://www.blogger.com/atom/ns#' term='if statement'/><category scheme='http://www.blogger.com/atom/ns#' term='control structure'/><category scheme='http://www.blogger.com/atom/ns#' term='programming languages'/><category scheme='http://www.blogger.com/atom/ns#' term='c language'/><category scheme='http://www.blogger.com/atom/ns#' term='break statement'/><title type='text'>Control Structure in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;C language possesses such decision making capabilities and supports the following&lt;br /&gt;statements known as control or decision-making statements.&lt;br /&gt;&lt;br /&gt;   1.      if statement&lt;br /&gt;   2.      switch statement&lt;br /&gt;   3.      Conditional operator statement&lt;br /&gt;   4.      goto statement &lt;br /&gt;&lt;br /&gt;if Statement&lt;br /&gt;The if statement is a powerful decision making statement and is used to control&lt;br /&gt;the flow of execution of statements. It is basically a two-way decision statement&lt;br /&gt;and is used in conjunction with an expression.&lt;br /&gt;&lt;br /&gt;Syntax&lt;br /&gt;    if (conditional)&lt;br /&gt;    {&lt;br /&gt;            block of statements executed if conditional is true;&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;   {&lt;br /&gt;            block of statements if condition false;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int x=5&lt;br /&gt;&lt;br /&gt;if (x &gt; 1)&lt;br /&gt;{&lt;br /&gt;x=x+10;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;printf("%d", x);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if…else statement&lt;br /&gt;The if....else statement is an extension of the simple if statement. The general form is&lt;br /&gt;&lt;br /&gt;if (condition)&lt;br /&gt;{&lt;br /&gt;True-block statement(s)&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;False-block statement(s)&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;If the condition is true, then the true-block statement(s), immediately following the if&lt;br /&gt;statement are executed; otherwise the false-block statement(s) are executed.&lt;br /&gt;&lt;br /&gt; void main(void)&lt;br /&gt;{&lt;br /&gt;  int a, b;&lt;br /&gt;  char ch;&lt;br /&gt;&lt;br /&gt;  printf("Choice:\n");&lt;br /&gt;  printf("(A) Add, (S) Subtract, (M) Multiply, or (D) Divide?\n");&lt;br /&gt;  ch = getchar();&lt;br /&gt;  printf("\n");&lt;br /&gt;&lt;br /&gt;  printf("Enter a: ");&lt;br /&gt;  scanf("%d", &amp;a);&lt;br /&gt;  printf("Enter b: ");&lt;br /&gt;  scanf("%d", &amp;b);&lt;br /&gt;&lt;br /&gt;  if(ch=='A') printf("%d", a+b);&lt;br /&gt;  else if(ch=='S') printf("%d", a-b);&lt;br /&gt;  else if(ch=='M') printf("%d", a*b);&lt;br /&gt;  else if(ch=='D' &amp;&amp; b!=0) printf("%d", a/b);&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if-else-if statement&lt;br /&gt;&lt;br /&gt;void main(void) &lt;br /&gt;{&lt;br /&gt;  int numb;   &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;  printf("Type any Number : ");&lt;br /&gt;  scanf("%d", &amp;numb);&lt;br /&gt;&lt;br /&gt;  if(numb &gt; 0) {&lt;br /&gt;    printf("%d is the positive number", numb);&lt;br /&gt;  }&lt;br /&gt;  else if(numb &lt; 0)&lt;br /&gt;    printf("%d is the Negative number", numb);&lt;br /&gt;  else printf("%d is zero",numb);&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;Switch Statement:&lt;br /&gt;The switch and case statements help control complex conditional and branching operations.&lt;br /&gt;The switch statement transfers control to a statement within its body.&lt;br /&gt;&lt;br /&gt;Syntax:&lt;br /&gt;switch (expression) {&lt;br /&gt;                                    case item:&lt;br /&gt;                                                             statements;&lt;br /&gt;                                                             break;&lt;br /&gt;                                    case item:&lt;br /&gt;                                                            statements;&lt;br /&gt;                                                             break;&lt;br /&gt;                                                                                                             &lt;br /&gt;                                   case item:&lt;br /&gt;                                                            statements;&lt;br /&gt;                                                             break;&lt;br /&gt;                                    default:&lt;br /&gt;                                                             statement;&lt;br /&gt;                                                             break;&lt;br /&gt;                                    }&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;#include &lt;br /&gt;&lt;br /&gt;main(){&lt;br /&gt;        int numb;&lt;br /&gt;printf(“Type any Number”);&lt;br /&gt;scanf(“%d”,&amp;numb);&lt;br /&gt;        &lt;br /&gt;        switch(numb %2)&lt;br /&gt;        {&lt;br /&gt;            case 0 : printf("the number %d is even \n", numb);&lt;br /&gt;           &lt;br /&gt;            case 1 : printf("the number %d is odd \n", numb);&lt;br /&gt;                     break;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Ternary condition&lt;br /&gt;&lt;br /&gt;The ? (ternary condition) operator is a more efficient form for expressing simple if&lt;br /&gt;statements. It has the following form:&lt;br /&gt;&lt;br /&gt;expression1 ? expression2:  expression3&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;res = (a&gt;b) ? a : b;&lt;br /&gt;if a is greater than b than res has the value a else the res has value b.&lt;br /&gt;&lt;br /&gt;break statement&lt;br /&gt;&lt;br /&gt;break statement is used to exit from a loop or a switch, control passing to the first&lt;br /&gt;statement beyond the loop or a switch.&lt;br /&gt;&lt;br /&gt;With loops, break can be used to force an early exit from the loop, or to implement a&lt;br /&gt;loop with a test to exit in the middle of the loop body. A break within a loop should&lt;br /&gt;always be protected within an if statement which provides the test to control the exit condition.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;For(i=0;i&lt;=10;i++)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;            if(i==5){&lt;br /&gt;&lt;br /&gt;                        break;&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;printf(“\n%d”,i);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;0&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;4&lt;br /&gt;&lt;br /&gt;continue statement&lt;br /&gt;&lt;br /&gt;continue is similar to the break statement but it only works within loops where its effect&lt;br /&gt;is to force an immediate jump to the loop control statement.&lt;br /&gt;&lt;br /&gt;Like a break, continue should be protected by an if statement.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;For(i=0;i&lt;10;i++)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;            if(i==5){&lt;br /&gt;&lt;br /&gt;                        continue;&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;printf(“\n%d”,i);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;0&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;4&lt;br /&gt;&lt;br /&gt;6&lt;br /&gt;&lt;br /&gt;7&lt;br /&gt;&lt;br /&gt;8&lt;br /&gt;&lt;br /&gt;9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The goto statement&lt;br /&gt;&lt;br /&gt;The goto is a unconditional branching statement used to transfer control of the program from&lt;br /&gt;one statement to another.&lt;br /&gt;&lt;br /&gt;One must ensure not to use too much of goto statement in their program because its&lt;br /&gt;functionality is limited. It is only recommended as a last resort if structured solutions are&lt;br /&gt;much more complicated.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-4358440670895941036?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/4358440670895941036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=4358440670895941036&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/4358440670895941036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/4358440670895941036'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/control-structure.html' title='Control Structure in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-8272726167776541984</id><published>2009-02-01T09:04:00.000-08:00</published><updated>2011-11-29T09:26:34.536-08:00</updated><title type='text'>Functions in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;Function is a block of statements which perform some specific task and always return single value to the calling function. Functions are used to minimize the repetition of code.&lt;br /&gt;&lt;br /&gt;Some languages distinguish between functions which return variables and those which don't. C assumes that every function will return a value. If the programmer wants a return value, this is achieved using the return statement. If no return value is required, none should be used when calling the function.&lt;br /&gt;&lt;br /&gt;There are two types of functions in c language.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Library Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A function which is predefined in c language is called library function printf(), scanf(), getch() etc are library functions&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. User Defined Functions&lt;/span&gt;&lt;br /&gt;A function written by a programmer is called user defined function.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;#include&lt;br /&gt;int add (int x, int y) {&lt;br /&gt;int z;&lt;br /&gt;z = x + y;&lt;br /&gt;return (z);&lt;br /&gt;}&lt;br /&gt;main ()&lt;br /&gt;{&lt;br /&gt;int i, j, k;&lt;br /&gt;i = 15;&lt;br /&gt;j = 5;&lt;br /&gt;k = add(i, j);&lt;br /&gt;printf ("The value of k is %d\n", k);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The value of k is 30&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Scope of Function:&lt;/span&gt;&lt;br /&gt;Only a limited amount of information is available within the body of each function. Variables declared within the calling function can't be accessed from the outside functions unless they are passed to the called function as arguments.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Global Variables:&lt;/span&gt;&lt;br /&gt;A variable that is declared out side all functions is called Global variable. Global variables don't die on return from a function. Their value is retained, and is available to any other function in whole program.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Local Variables:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A variable that is declared within a function is called Local variable. They are created each time the function is called, and destroyed on return from the function. The values passed to the functions (arguments) are also treated like local variables.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Static Variables:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Static variables are like local variables but they don't die on return from the function. Instead their last value is retained, and it becomes available when the function is called again.&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-8272726167776541984?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/8272726167776541984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=8272726167776541984&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/8272726167776541984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/8272726167776541984'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/functions.html' title='Functions in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-7593569172216515455</id><published>2009-02-01T08:56:00.003-08:00</published><updated>2011-11-29T09:26:38.684-08:00</updated><title type='text'>Pointers in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;A pointer is a variable suitable for keeping memory addresses of other variables; the values you assign to a pointer are memory addresses of other variables or other pointers.&lt;br /&gt;&lt;br /&gt;C pointers are characterized by their value and data-type. The value is the address of the memory location the pointer points to, the type determines how the pointer will be incremented/decremented in pointer or subscript arithmetic.&lt;br /&gt;Pointers are used to manipulate arrays and they can be used to return more than one value from a function.&lt;br /&gt;&lt;br /&gt;Pointers are declared by using the asterisk(*).&lt;br /&gt;&lt;br /&gt;int *p;&lt;br /&gt;&lt;br /&gt;Each variable has two attributes: address and value. The address is the location in memory. In that location, the value is stored. During the lifetime of the variable, the address is not changed but the value may change.&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;void main (void)&lt;br /&gt;{&lt;br /&gt;int i;  &lt;br /&gt;int * a;&lt;br /&gt;i = 10; &lt;br /&gt;a = &amp;i;&lt;br /&gt;printf (" The address of i is %8u \n", a);   &lt;br /&gt;printf (" The value at that location is %d\n", i);&lt;br /&gt;printf (" The value at that location is %d\n", *a);&lt;br /&gt;}&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output:&lt;/span&gt;&lt;br /&gt;The address of i is   631672&lt;br /&gt;The value at that location is 10&lt;br /&gt;The value at that location is 10&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Arrays and Pointers:&lt;/span&gt;&lt;br /&gt;An array is actually a pointer to the 0th element of the array. Dereferencing the array name will give the 0th element. This gives us a range of equivalent notations for array access. In the following examples, arr is an array.&lt;br /&gt;&lt;table border="1" width="75%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="50%"&gt;Array&lt;/td&gt;&lt;br /&gt;&lt;td width="50%"&gt;Pointer&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;arr[0]&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;*arr&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;arr[1]&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;*(arr+1)&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;arr[n]&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;*(arr+n)&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/stdio.h&gt;&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-7593569172216515455?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/7593569172216515455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=7593569172216515455&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/7593569172216515455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/7593569172216515455'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/pointers.html' title='Pointers in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-561092126281991070</id><published>2009-02-01T08:56:00.001-08:00</published><updated>2011-11-29T09:26:42.530-08:00</updated><title type='text'>Arrays in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.&lt;br /&gt;&lt;br /&gt;An array is a data structure of multiple elements with the same data type. Array elements are accessed using subscript. The valid range of subscript is 0 to size -1.&lt;br /&gt; &lt;br /&gt;Declaration of Array&lt;br /&gt;&lt;br /&gt;int arr[10];&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;void main(void)&lt;br /&gt;{&lt;br /&gt;    int a[5];&lt;br /&gt;    int i;&lt;br /&gt;    for(i = 0;i&lt;5;i++)&lt;br /&gt;    {&lt;br /&gt;       a[i]=i;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    for(i = 0;i&lt;5;i++)&lt;br /&gt;    {&lt;br /&gt;        printf("%d value of I is = %d\n",i,a[i]);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Output&lt;br /&gt;&lt;br /&gt;1 value of I is = 0&lt;br /&gt;&lt;br /&gt;2 value of I is = 1&lt;br /&gt;&lt;br /&gt;3 value of I is = 2&lt;br /&gt;&lt;br /&gt;4 value of I is = 3&lt;br /&gt;&lt;br /&gt;5 value of I is = 4&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Multidimensional Arrays&lt;br /&gt;A multi-dimensional array of dimension n (i.e., an n-dimensional array or simply n-D array) is a collection of items which is accessed via n subscript expressions. Multidimensional arrays can be described as "arrays of arrays".&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;void main(void){&lt;br /&gt;    int a[3][2];&lt;br /&gt;    int i,j;&lt;br /&gt;    for(i = 0;i&lt;3;i++){&lt;br /&gt;        for(j=0;j&lt;2 ;j++) {&lt;br /&gt;           scanf(“%d”,&amp;a[i][j]);       }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    for(i = 0;i&lt;3;i++){&lt;br /&gt;        for(j=0;j&lt;2;j++) {&lt;br /&gt;           printf("value in array %d\n",a[i][j]);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.studiesinn.com/'&gt;c tutorial&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-561092126281991070?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/561092126281991070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=561092126281991070&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/561092126281991070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/561092126281991070'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/arrays.html' title='Arrays in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-6351818923169002436</id><published>2009-02-01T08:54:00.002-08:00</published><updated>2011-11-29T09:26:48.396-08:00</updated><title type='text'>Strings in C</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;Character type array is called string. All strings end with the NULL character. Use the %s placeholder in the printf() function to display string values.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Declaration:&lt;/span&gt;&lt;br /&gt;char name[50];&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;void main (void )&lt;br /&gt;{&lt;br /&gt;  char *st1 = "abcd";&lt;br /&gt;  char st2[] = "efgh";&lt;br /&gt;  printf( "%s\n", s1);&lt;br /&gt;  printf( "%s\n", s2);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void main(void){&lt;br /&gt;&lt;br /&gt;  char myname[] = { 'S', 't', 'e', 'v', 'e' };&lt;br /&gt;&lt;br /&gt;  printf("%s \n",myname);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;String input and output:&lt;/span&gt;&lt;br /&gt;The gets function relieves the string from standard input device while put S outputs the string to the standard output device.&lt;br /&gt;&lt;br /&gt;The function gets accepts the name of the string as a parameter, and fills the string with characters that are input from the keyboard till newline character is encountered.&lt;br /&gt;The puts function displays the contents stored in its parameter on the standard screen.&lt;br /&gt;The syntax of the gets function is&lt;br /&gt;gets (str_var);&lt;br /&gt;&lt;br /&gt;The syntax of the puts character is&lt;br /&gt;puts (str_var);&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# include &lt;&gt;&lt;br /&gt;Void main ( )&lt;br /&gt;{&lt;br /&gt;char myname [40];&lt;br /&gt;printf (“Type your Name :”);&lt;br /&gt;gets (myname);&lt;br /&gt;printf (“Your name is :”);&lt;br /&gt;puts(myname);&lt;br /&gt;}&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some String Functions:&lt;/span&gt;&lt;br /&gt;&lt;/stdio.h&gt;&lt;table summary="" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Function&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Description&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;strcpy(string1, string2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Copy string2 into string1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;strcat(string1, string2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Concatenate string2 onto the end of string1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;length = strlen(string)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Get the length of a string&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;strcmp(string1, string2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Return 0 if string1 equals string2, otherwise nonzero&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span&gt;strchr(&lt;/span&gt;string1, chr&lt;span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;will find the first matching character in a string.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-6351818923169002436?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/6351818923169002436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=6351818923169002436&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6351818923169002436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6351818923169002436'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/strings-in-c.html' title='Strings in C'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-416155828068987797</id><published>2009-02-01T08:54:00.001-08:00</published><updated>2011-11-29T09:26:52.538-08:00</updated><title type='text'>Structures and Unions in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient way of grouping several pieces of related information together.&lt;br /&gt;&lt;br /&gt;struct mystruct&lt;br /&gt;{&lt;br /&gt;  int numb;&lt;br /&gt;  char ch;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Structure has name mystruct and it contains two variables: an integer named numb and a character named ch.&lt;br /&gt;&lt;br /&gt;struct mystruct s1;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Accessing Member Variables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;s1.numb=12;&lt;br /&gt;&lt;br /&gt;s1.ch=’b’;&lt;br /&gt;&lt;br /&gt;printf(“\ns1.numb=%d”,s1.numb);&lt;br /&gt;&lt;br /&gt;printf(“\ns1.ch=%c”,s1.ch);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;typedef can also be used with structures. The following creates a new type sb which is of type struct chk and can be initialised as usual:&lt;br /&gt;typedef struct chk&lt;br /&gt;                                  {&lt;br /&gt;                                  char name[50];&lt;br /&gt;                                  int magazinesize;&lt;br /&gt;                                  float calibre;&lt;br /&gt;                                  } sb;&lt;br /&gt;&lt;br /&gt;                       ab arnies={"adam",30,7};&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Unions:&lt;/span&gt;&lt;br /&gt;A union is an object that can hold any one of a set of named members. The members of the named set can be of any data type. Members are overlaid in storage. The storage allocated for a union is the storage required for the largest member of the union, plus any padding required for the union to end at a natural boundary of its strictest member.&lt;br /&gt;&lt;br /&gt;union {&lt;br /&gt;    char n;&lt;br /&gt;    int age;&lt;br /&gt;    float weight;&lt;br /&gt;    } people;&lt;br /&gt;&lt;br /&gt;people.n='g';&lt;br /&gt;people.age=26;&lt;br /&gt;people.weight=64;&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-416155828068987797?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/416155828068987797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=416155828068987797&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/416155828068987797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/416155828068987797'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/structures-and-union.html' title='Structures and Unions in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-6773440785471688660</id><published>2009-02-01T08:49:00.000-08:00</published><updated>2011-11-29T09:26:58.893-08:00</updated><title type='text'>File Handling in c</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;A file is a collection of bytes stored on a secondary storage device, which is generally a disk of some kind. The collection of bytes may be interpreted, for example, as characetrs, words, lines, paragraphs and pages from a textual document; fields and records belonging to a database; or pixels from a graphical image. There are two kinds of files that programmers deal with text files and binary files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Text Files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A text file can be a stream of characters that a computer can process sequentially. It is not only processed sequentially but only in forward direction. For this reason a text file is usually opened for only one kind of operation (reading, writing, or appending) at any given time.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Binary Files&lt;/span&gt;&lt;br /&gt;A binary file is no different to a text file. It is a collection of bytes. In C Programming Language a byte and a character are equivalent. No special processing of the data occurs and each byte of data is transferred to or from the disk unprocessed. C Programming Language places no constructs on the file, and it may be read from, or written to, in any manner chosen by the programmer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Opening a file:&lt;/span&gt;&lt;br /&gt;The general format of the function used for opening a file is&lt;br /&gt;FILE *fp;&lt;br /&gt;fp=fopen(“filename”,”mode”);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first statement declares the variable fp as a pointer to the data type FILE. As stated earlier, File is a structure that is defined in the I/O Library. The second statement opens the file named filename and assigns an identifier to the FILE type pointer fp. fopen() contain the file name and mode (the purpose of opening the file).&lt;br /&gt;&lt;br /&gt;r is used to open the file for read only.&lt;br /&gt;w is used to open the file for writing only.&lt;br /&gt;a is used to open the file for appending data to it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Closing a File&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A file must be closed as soon as all operations on it have been completed. This would close the file associated with the file pointer. The input output library supports the function to close a file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Syntax to close file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;fclose(filepointer);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;void main(void)&lt;br /&gt; {&lt;br /&gt;   FILE *myfile;&lt;br /&gt;   char c;&lt;br /&gt;   myfile = fopen("firstfile.txt", "r");&lt;br /&gt;   if (myfile == NULL) printf("File doesn't exist\n");&lt;br /&gt;   else {&lt;br /&gt;    do {&lt;br /&gt;     c = getc(myfile);&lt;br /&gt;  &lt;br /&gt;       putchar(c);&lt;br /&gt;  &lt;br /&gt;     } while (c != EOF);&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;  fclose(myfile);&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;File operation functions in C:&lt;/span&gt;&lt;br /&gt;&lt;/stdio.h&gt;&lt;table summary="" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Function Name&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Operation&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;fopen()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Creates a new file. Opens an existing file.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;fclose&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Closes a file which has been opened for use&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;getc()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Reads a character from a file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;putc()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Writes a character to a file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;fprintf()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Writes a set of data values to a file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;fscanf()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Reads a set of data values from a file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;getw()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Reads a integer from a file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;putw()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Writes an integer to the file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;fseek()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Sets the position to a desired point in the file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;ftell()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Gives the current position in the file&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="141"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;rewind()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign="top" width="335"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Sets the position to the beginning of the file&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-6773440785471688660?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/6773440785471688660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=6773440785471688660&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6773440785471688660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/6773440785471688660'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/first-program.html' title='File Handling in c'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4748214753933441199.post-2666526545333674470</id><published>2009-02-01T08:47:00.000-08:00</published><updated>2011-11-29T09:27:04.139-08:00</updated><title type='text'>Graphics in C</title><content type='html'>&lt;script type="text/javascript"&gt;google_ad_client = "ca-pub-3661156341503469";google_ad_slot = "7045821568";google_ad_width = 468;google_ad_height = 60;&lt;/script&gt;&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Graphics mode Initialization&lt;/span&gt;&lt;br /&gt;initgraph() function is used to load the graphics drivers and initialize the graphics system. For every function, that uses graphics mode, graphics mode must be initialized before using that function.&lt;br /&gt;&lt;br /&gt;void far initgraph(int far *driver, int far *mode, char far *path)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Function detectgraph&lt;/span&gt;&lt;br /&gt;Detectgraph function determines the graphics hardware in the system, if the function finds a graphics adapter then it returns the highest graphics mode that the adapter supports.&lt;br /&gt;void far detectgraph(int far *driver, int far *mode)&lt;br /&gt;&lt;br /&gt;Integer that specifies the graphics driver to be used. You can give graphdriver a value using a constant of the graphics_drivers enumeration type.&lt;br /&gt;&lt;br /&gt;Integer that specifies the initial graphics mode (unless *graphdriver = DETECT). If *graphdriver = DETECT, initgraph sets *graphmode to the highest resolution available for the detected driver. You can give *graphmode a value using a constant of the graphics_modes enumeration type.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Function closegraph&lt;/span&gt;&lt;br /&gt;This function shutdown the graphics mode and returns to the position it was before the initgraph function was called.&lt;br /&gt;void far closegraph(void)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example 1:&lt;/span&gt;&lt;br /&gt;#include&lt;graphics.h&gt;&lt;br /&gt;#include&lt;conio.h&gt;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;   int gd=DETECT, gm;&lt;br /&gt;&lt;br /&gt;   initgraph(&amp;amp;gd, &amp;amp;gm, "c:\\turboc\\bgi");&lt;br /&gt;   circle(200,100,150);&lt;br /&gt;&lt;br /&gt;   getch();&lt;br /&gt;   closegraph();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example 2:&lt;/span&gt;&lt;br /&gt;#include&lt;graphics.h&gt;&lt;br /&gt;#include&lt;conio.h&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;   int gd=DETECT, gm;&lt;br /&gt;   initgraph(&amp;amp;gd, &amp;amp;gm, " c:\\turboc\\bgi");&lt;br /&gt;    &lt;br /&gt;   circle(100,100,50);&lt;br /&gt;   outtextxy(75,170, "Circle");&lt;br /&gt;   rectangle(200,50,350,150);&lt;br /&gt;   outtextxy(240, 170, "Rectangle");&lt;br /&gt;   ellipse(500, 100,0,360, 100,50);&lt;br /&gt;   outtextxy(480, 170, "Ellipse");&lt;br /&gt;   line(100,250,540,250);&lt;br /&gt;   outtextxy(300,260,"Line");&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;closegraph();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some Useful Graphics.h Functions:&lt;/span&gt;&lt;br /&gt;int getdisplaycolor( int color );&lt;br /&gt;int converttorgb( int color );&lt;br /&gt;void delay( int msec );&lt;br /&gt;void getarccoords( arccoordstype *arccoords );&lt;br /&gt;int getbkcolor( );&lt;br /&gt;int getcolor( );&lt;br /&gt;int getmaxcolor( );&lt;br /&gt;int getmaxheight( );&lt;br /&gt;int getmaxwidth( );&lt;br /&gt;int getmaxx( );&lt;br /&gt;int getmaxy( );&lt;br /&gt;void getfillpattern( char *pattern );&lt;br /&gt;void getfillsettings( fillsettingstype *fillinfo );&lt;br /&gt;void getlinesettings( linesettingstype *lineinfo );&lt;br /&gt;bool getrefreshingbgi( );&lt;br /&gt;int getwindowheight( );&lt;br /&gt;int getwindowwidth( );&lt;br /&gt;int getpixel( int x, int y );&lt;br /&gt;void getviewsettings( viewporttype *viewport );&lt;br /&gt;int getx( );&lt;br /&gt;int gety( );&lt;br /&gt;void setcolor( int color );&lt;br /&gt;void setfillpattern( char *upattern, int color );&lt;br /&gt;void setfillstyle( int pattern, int color );&lt;br /&gt;void setlinestyle( int linestyle, unsigned upattern, int thickness );&lt;br /&gt;void setrefreshingbgi(bool value);&lt;br /&gt;void setviewport( int left, int top, int right, int bottom, int clip );&lt;br /&gt;void setwritemode( int mode );&lt;br /&gt;void moverel( int dx, int dy );&lt;br /&gt;void moveto( int x, int y );&lt;br /&gt;void refreshbgi(int left, int top, int right, int bottom);&lt;br /&gt;void refreshallbgi( );   &lt;br /&gt;void setbkcolor( int color );&lt;br /&gt;&lt;br /&gt;For More Tutorials &lt;a href="http://www.studiesinn.com/"&gt;c tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;graphics.h&gt;&lt;conio.h&gt;&lt;graphics.h&gt;&lt;conio.h&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onclick="return addthis_sendto()" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"&gt;&lt;img alt="" src="http://s7.addthis.com/static/btn/lg-share-en.gif" border="0" height="16" width="125" /&gt;&lt;/a&gt;&lt;script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/conio.h&gt;&lt;/graphics.h&gt;&lt;/conio.h&gt;&lt;/graphics.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4748214753933441199-2666526545333674470?l=lectures-c.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lectures-c.blogspot.com/feeds/2666526545333674470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4748214753933441199&amp;postID=2666526545333674470&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/2666526545333674470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4748214753933441199/posts/default/2666526545333674470'/><link rel='alternate' type='text/html' href='http://lectures-c.blogspot.com/2009/02/introduction.html' title='Graphics in C'/><author><name>Malik</name><uri>http://www.blogger.com/profile/13602544266228369990</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
