<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>C Language Tutorial Online</title><description>C Language Tutorial, What is C, Character Sets, Keywords, Constants, C Language Basic Programs</description><managingEditor>noreply@blogger.com (Tamil selvan)</managingEditor><pubDate>Mon, 24 Mar 2025 19:44:00 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">6</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://c-tutoriall.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>C Language Tutorial, What is C, Character Sets, Keywords, Constants, C Language Basic Programs</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>First C Sample Program</title><link>http://c-tutoriall.blogspot.com/2010/12/first-c-sample-program.html</link><category>C Basic</category><category>C For Beginners</category><category>Sample Programs</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Tue, 28 Dec 2010 00:44:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-4341987421408368130</guid><description>&lt;p&gt;Let us now write down our &lt;strong&gt;first C program.&lt;/strong&gt; &lt;/p&gt; &lt;p&gt;&lt;u&gt;/*calculation of simple interest*/&lt;br&gt;/*my first c program*/ &lt;/u&gt; &lt;p&gt;&lt;u&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br&gt;int main()&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int p,n;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* declaration*/&lt;br&gt;&amp;nbsp;&amp;nbsp; float r,si;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* declaration*/ &lt;/u&gt; &lt;p&gt;&lt;u&gt;&amp;nbsp;&amp;nbsp; p=1000;&lt;br&gt;&amp;nbsp;&amp;nbsp; n=3;&lt;br&gt;&amp;nbsp;&amp;nbsp; r=8.5;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*formula for simple interest*/&lt;br&gt;&amp;nbsp;&amp;nbsp; si=p*n*r/100;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* usage*/ &lt;/u&gt; &lt;p&gt;&lt;u&gt;&amp;nbsp;&amp;nbsp; printf("%f",si);&lt;br&gt;&amp;nbsp;&amp;nbsp; return 0;&lt;br&gt;}&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;C&lt;/strong&gt; does not contains any instructions to display output on the screen. All the output to screen is achived using readymade library functions. One such functions is “&lt;strong&gt;printf()&lt;/strong&gt;”. we have used it display on the screen the values contained in “&lt;strong&gt;si&lt;/strong&gt;”.&lt;/p&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></item><item><title>C keywords</title><link>http://c-tutoriall.blogspot.com/2010/12/c-keywords.html</link><category>C Basic</category><category>C Keywords</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Tue, 14 Dec 2010 05:28:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-6127367271280076512</guid><description>&lt;p&gt;&lt;strong&gt;Keywords&lt;/strong&gt; are the words whose meaning has already been explained to &lt;strong&gt;C compiler.&lt;/strong&gt; The &lt;strong&gt;keywords&lt;/strong&gt; Cannot be used as variable names because if we do so, we are trying to assign a new meaning to the &lt;strong&gt;keywords&lt;/strong&gt;, which is not allowed by the computer. Some &lt;strong&gt;C &lt;/strong&gt;compilers allow you to construct variable names that exactly resemble the &lt;strong&gt;keywords.&lt;/strong&gt;&amp;nbsp; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;The &lt;strong&gt;Keywords &lt;/strong&gt;are also called ‘&lt;strong&gt;Reserved Words’&lt;/strong&gt;. There are only 32 Keywords available in &lt;strong&gt;C. &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h2&gt;List Of 32 keywords available in C&lt;/h2&gt; &lt;table cellspacing="0" cellpadding="2" width="500" border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;auto&lt;/td&gt; &lt;td valign="top" width="123"&gt;double&lt;/td&gt; &lt;td valign="top" width="124"&gt;int&lt;/td&gt; &lt;td valign="top" width="125"&gt;struct&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;break&lt;/td&gt; &lt;td valign="top" width="123"&gt;else &lt;/td&gt; &lt;td valign="top" width="124"&gt;long&lt;/td&gt; &lt;td valign="top" width="125"&gt;switch&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;case&lt;/td&gt; &lt;td valign="top" width="123"&gt;enum&lt;/td&gt; &lt;td valign="top" width="124"&gt;register&lt;/td&gt; &lt;td valign="top" width="125"&gt;typedef&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;char&lt;/td&gt; &lt;td valign="top" width="123"&gt;extern&lt;/td&gt; &lt;td valign="top" width="124"&gt;return&lt;/td&gt; &lt;td valign="top" width="125"&gt;union&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;const&lt;/td&gt; &lt;td valign="top" width="123"&gt;float&lt;/td&gt; &lt;td valign="top" width="124"&gt;short&lt;/td&gt; &lt;td valign="top" width="125"&gt;unsigned&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;continue&lt;/td&gt; &lt;td valign="top" width="123"&gt;for &lt;/td&gt; &lt;td valign="top" width="124"&gt;signed&lt;/td&gt; &lt;td valign="top" width="125"&gt;void&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;default&lt;/td&gt; &lt;td valign="top" width="123"&gt;goto&lt;/td&gt; &lt;td valign="top" width="124"&gt;sizeof&lt;/td&gt; &lt;td valign="top" width="125"&gt;volatile&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" width="126"&gt;do&lt;/td&gt; &lt;td valign="top" width="123"&gt;if&lt;/td&gt; &lt;td valign="top" width="124"&gt;static&lt;/td&gt; &lt;td valign="top" width="125"&gt;while&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></item><item><title>Types Of Constant In C</title><link>http://c-tutoriall.blogspot.com/2010/12/types-of-constant-in-c.html</link><category>C Basic</category><category>Constant</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Sun, 12 Dec 2010 08:19:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-2903276034607731329</guid><description>&lt;p&gt;&lt;strong&gt;C Constants&lt;/strong&gt; can be divided into two major categories: &lt;/p&gt; &lt;p&gt;1: Primary Constants&lt;/p&gt; &lt;p&gt;2: Secondary Constants&lt;/p&gt; &lt;h2&gt;Primary Constants&lt;/h2&gt; &lt;p&gt;Integer Constant&lt;/p&gt; &lt;p&gt;Real Constant&lt;/p&gt; &lt;p&gt;Character Constant &lt;/p&gt; &lt;h2&gt;Secondary Constants&lt;/h2&gt; &lt;p&gt;Array&lt;/p&gt; &lt;p&gt;Pointer&lt;/p&gt; &lt;p&gt;Structure&lt;/p&gt; &lt;p&gt;Union&lt;/p&gt; &lt;p&gt;Enum. Etc.&lt;/p&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>What is Constant in C Language</title><link>http://c-tutoriall.blogspot.com/2010/12/what-is-constant-in-c-language.html</link><category>C Basic</category><category>Constant</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Sun, 12 Dec 2010 08:05:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-772685563838225700</guid><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;A &lt;strong&gt;Constant&lt;/strong&gt; is an entity that doesn’t change, whereas, a variable is an entity that may change.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;In any program we typically do lots of calculation. The results of these calculation are stored in &lt;strong&gt;computer’s memory&lt;/strong&gt; also consists of millions of cells. The calculated values are stored in memory cells. The values stored in each location may change the names given to these locations are called &lt;strong&gt;variables&lt;/strong&gt; names. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Example:&lt;/p&gt; &lt;p&gt;Now “3” is stored in an memory location and a name &lt;strong&gt;x &lt;/strong&gt;is given to it. &lt;/p&gt; &lt;p&gt;Then we have assigned a new value 5 to the same memory location &lt;strong&gt;x.&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This would overwrite the earlier value 3, since a memory location can hold only value at a time.since the location whose name is x can hold different times x is known as a variable. As against this, 3 or 5 do not change, hence are known as constants.&lt;/p&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></item><item><title>C Character Set</title><link>http://c-tutoriall.blogspot.com/2010/12/c-character-set.html</link><category>C Basic</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Sun, 12 Dec 2010 07:40:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-5956568716750409874</guid><description>&lt;p&gt;A character denotes any alphabet, digit or special symbol used to represent information. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Alphabets: A, B, ………, Y, Z&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Digits: 0,1,2,3,4,5,6,7,8,9&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Special Symbols: ~ ` ! @ # $ % ^ &amp;amp; * ( ) _ – + = | \&lt;/a&gt; { } [ ] : ; “ ‘ &amp;lt; &amp;gt; , . ? / &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;These are valid alphabets, numbers and special symbols allowed in c.&lt;/p&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>What is C Language</title><link>http://c-tutoriall.blogspot.com/2010/12/what-is-c-language.html</link><category>C Basic</category><author>noreply@blogger.com (Tamil selvan)</author><pubDate>Sat, 11 Dec 2010 08:40:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3591811508597074233.post-1462367219666910141</guid><description>&lt;p&gt;C is a Programming Language developed at Bell’s Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchies. In the Late Seventies C began to replace the more familiar language of that time like PL/I, ALGOL, etc. No one pushed C.Thus, without any advertisement, C’s reputation spread and its pool of users grew . Ritchie Seems to Have Been Rather surprised that so many Programmers C to older Languages like FORTRAN or PL/I, or the newer ones like Pascal and Apl. But that’s what happened.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Possibly why C seems so popular is because it is reliable, simple and easy to use. Moreover, in an industry where newer languages, tools and technologies emerge and vanish day in and day out, a language that has survived for more than three decades has to be really good.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;ul&gt; &lt;ul&gt; &lt;li&gt;I believe that nobody can learn C++ or Java directly. This is because while learning these languages you have things like &lt;strong&gt;classes, objects, inheritance, polymorphism, templates, exception handling, references, etc. &lt;/strong&gt;do deal with apart from knowing the actual languages elements.  &lt;li&gt;Hence one should first learn all the language elements very thoroughly using &lt;strong&gt;c&lt;/strong&gt; language before migrating to &lt;strong&gt;C++, C# or Java. &lt;/strong&gt; &lt;li&gt;Mobile devices like cellular phones and palmtops have become rage of today. Also, common consumer devices like microwave ovens, washing machines and digital cameras are getting smarter by the day. This smartness comes from a microprocessor, na operating system and a program embedded in these devices.  &lt;li&gt;You must have seen several professional 3D computer games where the user navigates some objects, like say a spaceship and fire bullets at the invaders.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;  </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item></channel></rss>