<?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-21657379</id><updated>2012-02-08T06:10:22.669+05:30</updated><title type='text'>Discovering C !</title><subtitle type='html'>As we all know that C is mother of all Computer Languages. You can Create another C language using C language itself. The sea of C is too massive. I just want to swim out this sea of C. Its not that easy but I will keep trying.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://discoverc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://discoverc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Parag Kalra</name><uri>http://www.blogger.com/profile/13414958965440037176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_V_eFWvv9a2I/SUP1_wlTvwI/AAAAAAAABEY/YhYCiaAThcs/S220/profilepic501575_1.gif.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21657379.post-115590881968785289</id><published>2006-08-18T19:16:00.000+05:30</published><updated>2006-08-18T19:16:59.700+05:30</updated><title type='text'>What C compiler should I use?</title><content type='html'>&lt;h2&gt;&lt;a name="WhatC"&gt;&lt;/a&gt;&lt;/h2&gt;  &lt;p&gt;The  &lt;a href="http://www.harbour-project.org/faq/harbour9.html#WhoDevelopers"&gt;Harbour developers&lt;/a&gt; consider GNU &lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt; to be &lt;em&gt;the&lt;/em&gt; supported compiler of the Harbour project, use of the &lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt; port for your chosen platform is encouraged.&lt;/p&gt; &lt;p&gt;However, should you wish to use a different C compiler your contribution to make it work is more than welcome. Currently the following C compiler and platform combinations are supported by someone in the development team: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Microsoft Windows &lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt;  (&lt;a href="http://www.cygwin.com/"&gt;CYGWIN&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt;  (&lt;a href="http://www.mingw.org/"&gt;MINGW32&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Borland C/C++ 4/5/Builder  (their &lt;a href="http://www.borland.com/bcppbuilder/freecompiler/"&gt;free&lt;/a&gt; compiler works)&lt;/li&gt;&lt;li&gt;Microsoft Visual C++ 10/11/12&lt;/li&gt;&lt;li&gt;IBM Visual Age for C++&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;DOS 32bit &lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt; (&lt;a href="http://www.delorie.com/djgpp/"&gt;DJGPP&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Watcom C/C++&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;DOS 16bit &lt;ul&gt;&lt;li&gt;Borland C/C++ 3.1&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.linux.org/"&gt;GNU/Linux&lt;/a&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt; (various versions).&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;OS/2 &lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/gcc/"&gt;GCC&lt;/a&gt; (&lt;a href="http://archiv.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/"&gt;EMX&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;IBM C++&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Macintosh &lt;ul&gt;&lt;li&gt;&lt;a href="http://developer.apple.com/tools/mpw-tools/"&gt;MPW&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21657379-115590881968785289?l=discoverc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://discoverc.blogspot.com/feeds/115590881968785289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21657379&amp;postID=115590881968785289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/115590881968785289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/115590881968785289'/><link rel='alternate' type='text/html' href='http://discoverc.blogspot.com/2006/08/what-c-compiler-should-i-use.html' title='What C compiler should I use?'/><author><name>Parag Kalra</name><uri>http://www.blogger.com/profile/13414958965440037176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_V_eFWvv9a2I/SUP1_wlTvwI/AAAAAAAABEY/YhYCiaAThcs/S220/profilepic501575_1.gif.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21657379.post-115273419619663231</id><published>2006-07-13T01:25:00.000+05:30</published><updated>2006-07-26T10:31:28.970+05:30</updated><title type='text'>C @@ my Notes</title><content type='html'>&lt;p class="MsoNormal"&gt;A string constant is a character array terminated by a null ('\0'). &lt;/p&gt;  &lt;p class="MsoNormal"&gt;For EG:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;char name[]={'R', 'T', 'L', 'i', 'n', 'u', 'X', '\0'};&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Each character in the array occupies one byte of memory and last character is always '\0'. It looks like two characters but actually is just one. It is different from 0. The ascii value of 0 is 48 where as ascii value of \0 is 0.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Three ways write a C program for strings:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;METHOD 1&lt;/p&gt;  &lt;p class="MsoNormal"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;main()&lt;/p&gt;  &lt;p class="MsoNormal"&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;char os[]="Suse";&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;int i=0;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;while (i&lt;=5)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                &lt;/span&gt;printf("%c",os[i]);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                &lt;/span&gt;i++;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;printf("\n");&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;return 0;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;METHOD 2&lt;/p&gt;  &lt;p class="MsoNormal"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;main()&lt;/p&gt;  &lt;p class="MsoNormal"&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;char os[]="Redhat";&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;int i=0;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;while(os[i]!='\0')&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                &lt;/span&gt;printf("%c",os[i]);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                &lt;/span&gt;i++;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;printf("\n");&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;return 0;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;METHOD 3&lt;/p&gt;  &lt;p class="MsoNormal"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;main()&lt;/p&gt;  &lt;p class="MsoNormal"&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;char os[]="Debian";&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;char *i=os;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;//i=os;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;while(*i!='\0')&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;                &lt;/span&gt;printf("%c",*i);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;i++;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;printf("\n");&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;        &lt;/span&gt;return 0;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;}&lt;br /&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;    &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 1.1.2  (Linux)"&gt;&lt;meta name="CREATED" content="20070619;22422300"&gt;&lt;meta name="CHANGED" content="20070619;22533900"&gt;          &lt;style&gt;  &lt;!--   @page { size: 8.27in 11.69in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;METHOD 4&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os[]="Ubuntu";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;METHOD 5&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os[15];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\nPlease enter the name of the Operating System: ");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        scanf("%s",os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;Note the declaration char os[15] sets aside 15 bytes under the the array os[], where as the scanf function fills in the characters typed at keyboard into this array until the enter key is hit. Once the enter key is hit, the scanf() places a '\0' in the array. &lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;The length of string should not exceed the character array dimension because C compiler doesn't perform bounds checking on character array.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;scanf is not capable of receiving multi-word strings. Hence to use multi word strings use gets(). Counter part of gets() is puts(). puts() can display only one string at a time.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;EG:&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os[15];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("Please enter the name of os: ");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        gets(os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        puts("Use ");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        puts(os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        puts("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;scanf can be made to accept multi word strings as shown in following example:&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;EG:&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os[15];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("Please enter the oss which u like: ");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        scanf("%[^\n]s",os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("You love %s", os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n",os);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 1.1.2  (Linux)"&gt;&lt;meta name="CREATED" content="20070619;22422300"&gt;&lt;meta name="CHANGED" content="20070619;22533900"&gt;          &lt;style&gt;  &lt;!--   @page { size: 8.27in 11.69in; margin: 0.79in }   P { margin-bottom: 0.08in }   TD P { margin-bottom: 0.08in }   TH P { margin-bottom: 0.08in; font-style: italic }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Suppose we wish to store “Hello”. We may either store it in string or we may ask the C compiler to store it at some location in memory and assign the address of the string in a char pointer. This is shown bellow.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os1[]="Xandros";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os2[10];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        os2=os1;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",os2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char lang1[]="vb.net";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char *lang2;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        lang2=lang1;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",lang2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;STANDARD LIBRARY FUNCTIONS:&lt;/p&gt; &lt;table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%"&gt;  &lt;col width="36*"&gt;  &lt;col width="220*"&gt;  &lt;thead&gt;   &lt;tr valign="top"&gt;    &lt;th width="14%"&gt;     &lt;p&gt;Function&lt;/p&gt;    &lt;/th&gt;    &lt;th width="86%"&gt;     &lt;p&gt;Use&lt;/p&gt;    &lt;/th&gt;   &lt;/tr&gt;  &lt;/thead&gt;  &lt;tbody&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strlen&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Finds length of a string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strupr&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Converts a string to upper case.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strlwr&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Converts a string to lower case.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strcat&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Appends one string at the end of other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strncat&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Appends n characters at the end of other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strcpy&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Copies one string at the end of other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strncpy&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Copies first n characters at the end of other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strcmp&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Compares two strings without ignoring the case.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strncmp&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Compares first n characters of two strings.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;stricmp&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Compares two strings ignoring the the case.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strnicmp&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Compares first n characters of two strings ignoring the case.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strdup&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Duplicates the string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strrev&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Reverses the string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strstr&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Finds first occurance of given string in other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strchr&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Finds first occurance of given characters in other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strrchr&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Finds last occurance of given characters in other string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strset&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Sets all characters of a given string in another string.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;    &lt;td width="14%"&gt;     &lt;p&gt;strnset&lt;/p&gt;    &lt;/td&gt;    &lt;td width="86%"&gt;     &lt;p&gt;Sets first n characters of a string to a given character.&lt;/p&gt;    &lt;/td&gt;   &lt;/tr&gt;  &lt;/tbody&gt; &lt;/table&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;    &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.0  (Linux)"&gt;&lt;meta name="CREATED" content="20070619;22422300"&gt;&lt;meta name="CHANGED" content="20070619;22533900"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os1[]="goose";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os2[]="Solaris";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int l1;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int l2;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        l1=strlen(os1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        l2=strlen(os2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s has a length of %d", os1,l1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s has a length of %d", os2,l2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char os1[]="server2003";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int ln1,ln2;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        ln1=cstrlen(os1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        ln2=cstrlen("serverNT");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s has a length of %d",os1,ln1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s has a length of %d","serverNT",ln2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;cstrlen(char *s)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int l3=0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        while(*s!='\0')&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        {&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                l3++;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                s++;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        }&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return(l3);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char mp[]="xmms";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        strupr(mp);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",mp);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char edi1[]=" Open Office ";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char edi2[50]="Word is not better than";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        strcat(edi2,edi1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s", edi2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;   &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 1.1.2  (Linux)"&gt;&lt;meta name="CREATED" content="20070619;22422300"&gt;&lt;meta name="CHANGED" content="20070619;22533900"&gt;          &lt;style&gt;  &lt;!--   @page { size: 8.27in 11.69in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char mp[]="AMORK";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        strlwr(mp);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s",mp);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char edi1[]=" Open Office ";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char edi2[50]="Word is not better than";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        strcat(edi2,edi1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s", edi2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char unixfather[50];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char linuxfather[]="Linux Torvalds owes many things to Denis Ritchie";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        strcpy(unixfather,linuxfather);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s \n", unixfather);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s \n", linuxfather);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char intking1[50];&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        char intking2[50]="Google is giving a run for money to Yahoo";&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        cstrcpy(intking1,intking2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s \n",intking1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%s \n",intking2);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;cstrcpy(char *add1,char *add2)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        //*int i=0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        while(*add2!='\0')&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        {&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                *add1=*add2;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                add1++;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                add2++;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        }&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        //*add1=*add2;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        //return(add1);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;By declaring char as constant we are declaring that the source string should remain constant(should not change). Thus the const qualifier ensures that your program does not inadvertently alter a variable that you intended to be a constant.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;strcmp()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;This is a function which compares two strings to find out whether they are same or different. The two strings are compared character by character until there is a mismatch or end of one of the strings is reached, which ever occurs first. If two strings are identical, strcmp returns a value zero. If they are not it returns numeric difference of ascii values of the first non matching pairs of characters.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;ARRAYS&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;EG1:&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt; main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int i;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int a[]={2,4,5,6,7,8,8};&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        for(i=0;i&lt;7;i++)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                display(a[i]);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        return 0;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;display(int m)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf(" %d",m);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;EG2:&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;main()&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int i;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int ary[]={1,2,3,4,5,6};&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        for(i=0;i&lt;6;i++)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;                display(&amp;ary[i]);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;display(int *n)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        show(&amp;n);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        //printf("%c",n);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;show(int *m)&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;{&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        int *l;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        l=*m;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("%d",*l);&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;        printf("\n");&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&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/21657379-115273419619663231?l=discoverc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://discoverc.blogspot.com/feeds/115273419619663231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21657379&amp;postID=115273419619663231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/115273419619663231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/115273419619663231'/><link rel='alternate' type='text/html' href='http://discoverc.blogspot.com/2006/07/c-my-notes.html' title='C @@ my Notes'/><author><name>Parag Kalra</name><uri>http://www.blogger.com/profile/13414958965440037176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_V_eFWvv9a2I/SUP1_wlTvwI/AAAAAAAABEY/YhYCiaAThcs/S220/profilepic501575_1.gif.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21657379.post-113998333572069083</id><published>2006-02-15T11:24:00.000+05:30</published><updated>2006-04-02T15:29:43.006+05:30</updated><title type='text'>See my C!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/3728/2042/1600/Image%28038%29.10.gif"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://photos1.blogger.com/blogger/3728/2042/200/Image%28038%29.28.jpg" alt="" border="0" /&gt;&lt;/a&gt;    &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;The &lt;/span&gt;&lt;st1:place style="font-weight: bold; font-style: italic;" st="on"&gt;&lt;st1:placetype st="on"&gt;Sea&lt;/st1:placetype&gt;  of &lt;st1:placename st="on"&gt;C&lt;/st1:placename&gt;&lt;/st1:place&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C&lt;/span&gt;&lt;/span&gt; needs no introduction. No matter you do what in computers or IT field, you should know C Language. In fact C is the building block of all other Languages. If you know C, you would be in a position to grasp all other Languages very easily. Also all major applications are designed in C. Take for instance entire Linux is designed and programmed using C Language. Same is the case with Oracle. In fact older versions of Windows were also programmed in C. In every interview you would be asked questions on C Language. There is no substitute and rescue for C. The bottom line is you need to know C. The &lt;st1:place st="on"&gt;&lt;st1:placetype st="on"&gt;sea&lt;/st1:placetype&gt; of &lt;st1:placename st="on"&gt;C&lt;/st1:placename&gt;&lt;/st1:place&gt; is very big. Earlier you learn to swim in this sea, better it gets for you.&lt;/p&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;History of C!&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;C&lt;/span&gt; is a programming language that was developed at AT &amp; T’s Bell Laboratories of USA in 1972. It was developed by Denis Ritchie. In late seventies C began to replace other familiar languages of that time like ALGOL, PL/I, FORTRAN etc and even new languages of that time like PASCAL, APL etc. C has continued its domination even today.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="font-weight: bold; font-style: italic;" class="MsoNormal"&gt;&lt;span style="font-size:180%;"&gt;Why you should learn C?&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;T&lt;/span&gt;o understand other higher programming languages much      easily like C, C++, VC++, C#, Shell Scripting, Java etc.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;To go into the dept of how an operating system and      various applications works you need to know C because all major operating      systems like Unix, Linux, Older versions of Windows etc are being written      in C. Applications like Oracle are also being designed in C.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Most of the device drivers are written in C.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;It is always an advantage to develop a Game in C,      because for games it’s the speed with which your game runs counts. And      when it comes to speed, nothing beats C.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Speed and efficiency are also very important for      gadgets like Mobiles, PDAs etc because they have to work fast and that too      in limited amount memory available. Hence Programmers love to write the      Operating system pertaining to these devices in C.&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;              &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;The C Character Set:&lt;br /&gt;A&lt;/span&gt;lphabets: A, B, C………………….Z&lt;br /&gt;&lt;span style=""&gt;                    &lt;/span&gt;a , b, c , …………………z&lt;br /&gt;Digits: 1, 2 , 3,……………………….10&lt;br /&gt;Special Symbols: ~ ` ! @ # $ % ^ &amp; * ( ) _ - + = | \ { } [ ] : ; “ ‘ &lt; &gt; , . ? /&lt;br /&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-style: italic; font-weight: bold;font-size:180%;" &gt;Constants, Variables and Keywords:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;C&lt;/span&gt;onstant: A constant is an entity that doesn’t change.&lt;br /&gt;Variable: It is an entity that may change.&lt;/p&gt;    &lt;p class="MsoNormal" style="text-align: justify;"&gt;Rules for Constructing Integer Constants&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;1. An integer constant must at least contain on digit.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;2. It must not have a decimal point.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;3. It can be either possitive or negetive.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;4. If no sign precedes an integer constant it is assumed to be possitive.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;5. No commas or blank spaces are allowed within an integer constant.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;6. The allowable range for integer constants is -32768 to 32767.&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21657379-113998333572069083?l=discoverc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://discoverc.blogspot.com/feeds/113998333572069083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21657379&amp;postID=113998333572069083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/113998333572069083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/113998333572069083'/><link rel='alternate' type='text/html' href='http://discoverc.blogspot.com/2006/02/see-my-c.html' title='See my C!'/><author><name>Parag Kalra</name><uri>http://www.blogger.com/profile/13414958965440037176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_V_eFWvv9a2I/SUP1_wlTvwI/AAAAAAAABEY/YhYCiaAThcs/S220/profilepic501575_1.gif.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21657379.post-113852962492591598</id><published>2006-01-29T15:43:00.000+05:30</published><updated>2006-01-29T15:43:44.933+05:30</updated><title type='text'>Swiming in C</title><content type='html'>C is mother of Languages !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21657379-113852962492591598?l=discoverc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://discoverc.blogspot.com/feeds/113852962492591598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21657379&amp;postID=113852962492591598' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/113852962492591598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21657379/posts/default/113852962492591598'/><link rel='alternate' type='text/html' href='http://discoverc.blogspot.com/2006/01/swiming-in-c.html' title='Swiming in C'/><author><name>Parag Kalra</name><uri>http://www.blogger.com/profile/13414958965440037176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_V_eFWvv9a2I/SUP1_wlTvwI/AAAAAAAABEY/YhYCiaAThcs/S220/profilepic501575_1.gif.jpeg'/></author><thr:total>0</thr:total></entry></feed>
