<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;A0INQH48eip7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-1808410472675149441</id><updated>2011-11-28T01:19:51.072+01:00</updated><title>Cylonware</title><subtitle type="html">Dream it. Code it.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://cylonware.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://cylonware.blogspot.com/" /><author><name>Firestorm</name><uri>http://www.blogger.com/profile/08074339540164412999</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://4.bp.blogspot.com/_6O9NyHwfGU0/TPMRkrH80uI/AAAAAAAAADA/8sJfzHgWi88/S220/vmp.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Cylonware" /><feedburner:info uri="cylonware" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DEIFQnY5eip7ImA9WxBUF0k.&quot;"><id>tag:blogger.com,1999:blog-1808410472675149441.post-6933495423613686289</id><published>2010-03-04T22:15:00.006+01:00</published><updated>2010-03-05T00:48:33.822+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-05T00:48:33.822+01:00</app:edited><title>C Programming Language - Variables and Operators</title><content type="html">I introduced you to the C programming language and showed how to print something on screen in the last post. Now, I'm going to show you how to store data in variables, do operations on them, and print what's in those variables on screen.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Variables&lt;/b&gt;&lt;br /&gt;
What is a variable? You can think of it as a storage unit or like the letter x in math. &lt;a href="http://en.wikipedia.org/wiki/Variable_(programming)"&gt;Click here&lt;/a&gt; for a very detailed description of variables if you're interested. Variables have different types. Each type can hold a different type of value. For example, int holds integers and float holds floating points which are decimal numbers and there's also double which is like float but it has more digits which are useful in scientific applications and finally there is char which holds single characters. Here are their ranges.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: verdana, Arial, Tahoma; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border="1" cellpadding="0" cellspacing="0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: medium; border-collapse: collapse; border-left-color: initial; border-left-style: none; border-left-width: medium; border-right-color: initial; border-right-style: none; border-right-width: medium; border-top-color: initial; border-top-style: none; border-top-width: medium;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 77.4pt;" valign="top" width="103"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;char&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: rgb(236, 233, 216); border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 135pt;" valign="top" width="180"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;-128 to 127&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 77.4pt;" valign="top" width="103"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;Int&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: rgb(236, 233, 216); border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 135pt;" valign="top" width="180"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;-32768 to +32767&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 77.4pt;" valign="top" width="103"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;float&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: rgb(236, 233, 216); border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 135pt;" valign="top" width="180"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;3.4 e-38 to 3.4 e+38&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 77.4pt;" valign="top" width="103"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;double&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: rgb(236, 233, 216); border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: rgb(236, 233, 216); border-top-style: initial; border-top-width: initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; text-decoration: none; width: 135pt;" valign="top" width="180"&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black; font-family: verdana, Arial, Tahoma; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-decoration: none;"&gt;&lt;span style="font-family: Arial; font-size: 9pt;"&gt;1.7 e-308 to 1.7 e+308&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Now, you can either open our cHelloWorld project and delete the printf line or start a new project. If you're wondering why there's a "c" in front of "HelloWorld", the answer is I use&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Hungarian_notation"&gt;Hungarian notation&lt;/a&gt;&amp;nbsp;in which types are attached to names, in this case "cHelloWorld" means HelloWorld is a C language project and now maybe you're wondering why the "c" is a small letter. It's a &lt;a href="http://en.wikipedia.org/wiki/Naming_convention_(programming)"&gt;naming convention&lt;/a&gt;&amp;nbsp;called &amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/CamelCase"&gt;lowerCamelCase&lt;/a&gt;. Oh, one last thing about naming, variable names can't start with non-alphabetic characters.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;So our program looks like this now.&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_6O9NyHwfGU0/S5ACWMXCUEI/AAAAAAAAACM/jsEiuvkJOis/s1600-h/variables_and_operations_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" src="http://1.bp.blogspot.com/_6O9NyHwfGU0/S5ACWMXCUEI/AAAAAAAAACM/jsEiuvkJOis/s400/variables_and_operations_1.jpg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
First of all, we will declare and define a variable. So write this line of code above the line "&lt;span class="Apple-style-span" style="color: blue;"&gt;return &lt;/span&gt;0;"&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int&lt;/span&gt; intFirstVariable = 0;&lt;br /&gt;
&lt;br /&gt;
Here, the equal sign assigns 0 to our variable so "=" is the assign operator. So what does this line do? It allocates enough space to hold an integer value in memory and associates that location's memory address with the variable "intFirstVariable" and assigns the value 0 to it. You don't need to think about memory addresses for now. So why assign 0 to the variable? We could have just declared it like "&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt; intFirstVariable;" and left it like that and assigned a value later on but in big and complex programs, if you use a variable which isn't defined then your program may crash because any value could be sitting at that memory location.&lt;br /&gt;
&lt;br /&gt;
We declared and defined a variable, now what? Now we will learn how to print a value stored in a variable, on screen. So go ahead and write this line of code under the variable definition.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"Value stored in the variable intFirstVariable is %d\n"&lt;/span&gt;, intFirstVariable);&lt;br /&gt;
&lt;br /&gt;
If you compile and run this program, you should see "&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;Value stored in the variable intFirstVariable is&amp;nbsp;0&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;" in the console (the black box) which is the value we assigned to our variable. The printf function prints a &lt;a href="http://en.wikipedia.org/wiki/Stream_(computing)"&gt;stream&lt;/a&gt; on screen so here by writing &lt;/span&gt;"%d"&lt;span class="Apple-style-span" style="color: black;"&gt; we are telling the function there is going to be a value from an integer variable in the stream and we tell the function what variable that is after the comma. If you declared another variable called intSecondVariable and assigned a value to it, you could display both of them on screen so let's do that.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;Write &lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&amp;nbsp;intSecondVariable = 1; under the first one and change the printf function as the following one.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("&lt;span class="Apple-style-span" style="color: orange;"&gt;Value stored in the variable intFirstVariable is %d\nValue stored in the variable intSecondVariable is %d\n"&lt;/span&gt;, intFirstVariable, intSecondVariable);&lt;br /&gt;
&lt;br /&gt;
If you want to display more integer variables then you just add &lt;span class="Apple-style-span" style="color: orange;"&gt;"%d"&lt;/span&gt; to where you want but be careful about where you write variable names after the first comma because they will be replaced with those &lt;span class="Apple-style-span" style="color: orange;"&gt;"%d"&lt;/span&gt;s in that order. &lt;br /&gt;
&lt;br /&gt;
So our program looks like this now (I won't show &lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;#include&lt;/span&gt; directives from now on because they come by default)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt; main()&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt; intFirstVariable = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt; intSecondVariable = 1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"Value stored in the variable intFirstVariable is %d\nValue stored in the variable intSecondVariable is %d\n"&lt;/span&gt;, intFirstVariable, intSecondVariable);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;return &lt;/span&gt;0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
There are different special characters for different variable types. They are called &lt;a href="http://www.friedspace.com/cprogramming/outputformats.php"&gt;specifiers&lt;/a&gt;. For example integers get replaced with &lt;span class="Apple-style-span" style="color: orange;"&gt;"%d"&lt;/span&gt;,&amp;nbsp;floats and doubles get replaced with &lt;span class="Apple-style-span" style="color: orange;"&gt;"%f" &lt;/span&gt;(if you want to show certain number of digits in the decimal part, you can use &lt;span class="Apple-style-span" style="color: orange;"&gt;"%.2f" &lt;/span&gt;which means there will be 2 digits in the decimal part), and chars get replaced with &lt;span class="Apple-style-span" style="color: orange;"&gt;"%c"&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Operators&lt;/b&gt;&lt;br /&gt;
There are different types of operators. I will show you the arithmetic ones in this post. Some of them are just like the basic operators in math which are add,&amp;nbsp;subtract, multiply, and divide. Let's use them. Change intFirstVariable's value to 1, intSecondVariable's value to 2 and declare a float variable called floatResult under them and assign it to 0.0 then write the following just under the first printf.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;floatResult = intFirstVariable + intSecondVariable;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"intFirstVariable + intSecondVariable = %.1f\n"&lt;/span&gt;, floatResult);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;floatResult = intFirstVariable - intSecondVariable;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"intFirstVariable - intSecondVariable = %.1f\n"&lt;/span&gt;, floatResult);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;floatResult = intFirstVariable * intSecondVariable;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"intFirstVariable * intSecondVariable = %.1f\n"&lt;/span&gt;, floatResult);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;floatResult = (&lt;span class="Apple-style-span" style="color: blue;"&gt;float&lt;/span&gt;)intFirstVariable / intSecondVariable;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("&lt;span class="Apple-style-span" style="color: orange;"&gt;intFirstVariable / intSecondVariable = %.1f\n"&lt;/span&gt;, floatResult);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;floatResult = intFirstVariable % intSecondVariable;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&lt;span class="Apple-style-span" style="color: orange;"&gt;"intFirstVariable mod intSecondVariable = %.1f\n"&lt;/span&gt;, floatResult);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why use float? It was unnecessary for the first three and the last operations because we added, subtracted, multiplied and took &lt;a href="http://en.wikipedia.org/wiki/Modulo_operation"&gt;modulo&lt;/a&gt;&amp;nbsp;(remainder of division of two numbers) of integers (whole numbers) but in the fourth operation, we divided one of them by the other one and in this case, it was 1 divided by 2 which is a fraction so in order to show that the result for this is 0.5, we need to use a float type variable. What did that&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue;"&gt;float&lt;/span&gt;) do?&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue;"&gt;float&lt;/span&gt;) casted intFirstVariable to float type so we would get a float result from an integer division. If we didn't cast one side of the division, we would get 0.0 as the result. Type name in&amp;nbsp;parentheses&amp;nbsp;followed by a variable is casted to the specified type.&lt;br /&gt;
&lt;br /&gt;
The ones I wrote about were binary operators. There are other arithmetic operators which work as shortcuts.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Unary Operators&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;+intFirstVariable;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable = 1 * intFirstVariable;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;-intFirstVariable;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable = -1 * intFirstVariable;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Assignment Operators&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;intFirstVariable += 5;&lt;/b&gt; means &lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;+ 5;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;intFirstVariable -= 5;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;- 5;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;intFirstVariable *= 5;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;* 5;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;b&gt;&amp;nbsp;intFirstVariable /= 5;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;/ 5;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;intFirstVariable %= 5;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;% 5;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prefix and Postfix Operators&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;intFirstVariable++;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;+ 1;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;++&amp;nbsp;intFirstVariable;&lt;/b&gt; also means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;+ 1;&lt;/b&gt; but in this case, the operation is performed before. I will write about this when we get to loops.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;b&gt;&amp;nbsp;intFirstVariable--;&lt;/b&gt; means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;- 1;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;--intFirstVariable;&lt;/b&gt; also means&amp;nbsp;&lt;b&gt;intFirstVariable =&amp;nbsp;intFirstVariable &amp;nbsp;- 1;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I will write about logical operators in the coming post. If you want to go ahead and take a look at all the operators, &lt;a href="http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B"&gt;click here&lt;/a&gt;.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: auto;"&gt;&lt;br /&gt;
&lt;/div&gt;So our code looks like this now&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_6O9NyHwfGU0/S5Aj0OEs_BI/AAAAAAAAACU/nF9kqCyL_qo/s1600-h/variables_and_operations_2.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="http://3.bp.blogspot.com/_6O9NyHwfGU0/S5Aj0OEs_BI/AAAAAAAAACU/nF9kqCyL_qo/s640/variables_and_operations_2.jpg" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
and works like this.&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/_6O9NyHwfGU0/S5Aj7w-UB2I/AAAAAAAAACc/iZuyi6IHRc8/s1600-h/variables_and_operations_3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="126" src="http://2.bp.blogspot.com/_6O9NyHwfGU0/S5Aj7w-UB2I/AAAAAAAAACc/iZuyi6IHRc8/s640/variables_and_operations_3.jpg" width="640" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1808410472675149441-6933495423613686289?l=cylonware.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2WFw8y5nHN1TpdOyswkVyyl_Ibw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2WFw8y5nHN1TpdOyswkVyyl_Ibw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2WFw8y5nHN1TpdOyswkVyyl_Ibw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2WFw8y5nHN1TpdOyswkVyyl_Ibw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Cylonware/~4/FBfbmmyD6G4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cylonware.blogspot.com/feeds/6933495423613686289/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://cylonware.blogspot.com/2010/03/introduction-to-c-programming-language_04.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1808410472675149441/posts/default/6933495423613686289?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1808410472675149441/posts/default/6933495423613686289?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Cylonware/~3/FBfbmmyD6G4/introduction-to-c-programming-language_04.html" title="C Programming Language - Variables and Operators" /><author><name>Firestorm</name><uri>http://www.blogger.com/profile/08074339540164412999</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://4.bp.blogspot.com/_6O9NyHwfGU0/TPMRkrH80uI/AAAAAAAAADA/8sJfzHgWi88/S220/vmp.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_6O9NyHwfGU0/S5ACWMXCUEI/AAAAAAAAACM/jsEiuvkJOis/s72-c/variables_and_operations_1.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://cylonware.blogspot.com/2010/03/introduction-to-c-programming-language_04.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIARnw8cSp7ImA9WxBUF04.&quot;"><id>tag:blogger.com,1999:blog-1808410472675149441.post-5582677967156631011</id><published>2010-03-03T19:17:00.013+01:00</published><updated>2010-03-04T22:35:47.279+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-04T22:35:47.279+01:00</app:edited><title>Introduction to C Programming Language - Hello World!</title><content type="html">&lt;div&gt;Before I start, I want to say "Hello World!" in English first. This is the first post for this blog and my purpose is to introduce readers to the C programming language. I don't claim to be the best teacher or I don't claim that you'll learn everything about C in this blog but I'll try and do my best, after all, I'm a first year software engineering student.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;First of all, you'll need a compiler (if you don't know what a compiler is, &lt;a href="http://en.wikipedia.org/wiki/Compiler"&gt;click here&lt;/a&gt;). I use Net Beans IDE for C programming, it can also be used with several other languages. You can download it &lt;a href="http://netbeans.org/downloads/index.html"&gt;here&lt;/a&gt;. Choose the 30mb one that has C/C++ or choose the 288mb one that has all supported languages if you like. The latter is good to have if you're planning on learning other languages in the future.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;After installing Net Beans, open it and go to "File" and click on "New Project" then from categories, choose "C/C++" and from projects, choose "C/C++ Application", click on "Next", name your project, choose a location for it and from the drop-down box, choose "C" and click on "Finish". Then, from the solution explorer box on the left of Net Beans IDE, click on your project's "Source Files" node, then double click on "main.c". Click on the image below to see the steps.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_6O9NyHwfGU0/S45ZZ3TaiOI/AAAAAAAAAA4/o4uFrfHkSPQ/s1600-h/hello_world_1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://4.bp.blogspot.com/_6O9NyHwfGU0/S45ZqxkAywI/AAAAAAAAABA/E4nX1RUtLu4/s1600-h/hello_world_1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5444387590931270402" src="http://4.bp.blogspot.com/_6O9NyHwfGU0/S45ZqxkAywI/AAAAAAAAABA/E4nX1RUtLu4/s400/hello_world_1.jpg" style="display: block; height: 400px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 194px;" /&gt;&lt;/a&gt;&lt;br /&gt;
Everything in C programming language is case-sensitive, so be careful about that. A and a are not the same.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666;"&gt;// Two slashes next to each other mean a comment line&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666;"&gt;// and this line will be ignored by the compiler&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;br /&gt;
/*&lt;br /&gt;
These mean that anything in between is a comment and will be ignored by the compiler&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666;"&gt;*/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;/* Apparently, I can't use pointy brackets in a post so I'll use screenshots of them. */&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;#include&lt;/span&gt;&amp;nbsp;&lt;a href="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46ow2C1dXI/AAAAAAAAABQ/r_nKzNSzpgg/s1600-h/hello_world_3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46ow2C1dXI/AAAAAAAAABQ/r_nKzNSzpgg/s320/hello_world_3.jpg" /&gt;&lt;/a&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: #666666;"&gt;/* # sign is a directive for the compiler and this is basically telling the compiler to include&amp;nbsp;the stdio.h (standard input/output) header file to our code. We include header files that contain useful functions for us. &lt;a href="http://en.wikipedia.org/wiki/Function_(computer_science)"&gt;Click here&lt;/a&gt; to see what function means in detail.&amp;nbsp;*&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #999999;"&gt;/&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;#include&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;a href="http://3.bp.blogspot.com/_6O9NyHwfGU0/S46pMrWA_GI/AAAAAAAAABY/1EsUUzSOTvo/s1600-h/hello_world_4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_6O9NyHwfGU0/S46pMrWA_GI/AAAAAAAAABY/1EsUUzSOTvo/s320/hello_world_4.jpg" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;/* stlib means standard library, the .h extension means header file&lt;/span&gt;. */&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt; main() &amp;nbsp;&lt;span class="Apple-style-span" style="color: #666666;"&gt;/* Every executable program must have a main function, this is where a program begins to execute.&amp;nbsp;int means an integer and in this context, it means the return type for this function "main" is an&amp;nbsp;integer */&lt;/span&gt;&lt;br /&gt;
{ &lt;span class="Apple-style-span" style="color: #666666;"&gt;/* Curly braces indicate beginning and ending points of a scope. &lt;a href="http://en.wikipedia.org/wiki/Scope_(programming)"&gt;Click here&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&amp;nbsp;to see what a scope is. They basically show where something's domain or area begins and ends. In this case, the opening curly brace means the domain of function "main" has begun. Every line in between these curly braces under the function "main" will be executed when the function "main" is called and the function "main" is going to be called by the OS (operating system) when we run this program */&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;return&lt;/span&gt; 0; &lt;span class="Apple-style-span" style="color: #666666;"&gt;/* When you run a program, it is executed line by line. If all the code in the scope of function "main" is executed then the function "main" returns the value 0 to the caller which is the OS. This means the program ran successfully. Don't think that every function needs to return a value for running successfully or not. For example, you can write a function to calculate sum of two numbers and then return the sum. We will discuss this in the coming posts. And, oh, in C and C based languages ";" means end of line, without the quotation marks though. &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
So this was the explanation for the code already created by the compiler for us. Remember the #include directives which include header files that contain functions? In the stdio.h header file, there is a function called "printf" which prints strings of text. So we will use a printf function to print "Hello World" on our screens. Let's see how it is used.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: auto;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#include&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;stdio.h&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;a href="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46ow2C1dXI/AAAAAAAAABQ/r_nKzNSzpgg/s1600-h/hello_world_3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46ow2C1dXI/AAAAAAAAABQ/r_nKzNSzpgg/s320/hello_world_3.jpg" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#include&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;stdlib.h&gt;&lt;/stdlib.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;stdlib.h&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;a href="http://3.bp.blogspot.com/_6O9NyHwfGU0/S46pMrWA_GI/AAAAAAAAABY/1EsUUzSOTvo/s1600-h/hello_world_4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_6O9NyHwfGU0/S46pMrWA_GI/AAAAAAAAABY/1EsUUzSOTvo/s320/hello_world_4.jpg" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/stdlib.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; main()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;printf(&lt;/span&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;"Hello World!\n"&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;);&lt;/span&gt; &lt;span class="Apple-style-span" style="color: #666666;"&gt;/* "\n" here is a special character which means a new line&lt;/span&gt;. */&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;return &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;0;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After writing your printf, hit F6 if you're using Net Beans IDE, this will compile and run your program. It may be a different key in other compilers but you get the idea.&lt;br /&gt;
&lt;br /&gt;
Aaaand... Tadaaaa! You've written your first program in the C language, congratulations!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46kiPTAvjI/AAAAAAAAABI/KOHDC5r8iuU/s1600-h/hello_world_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="321" src="http://1.bp.blogspot.com/_6O9NyHwfGU0/S46kiPTAvjI/AAAAAAAAABI/KOHDC5r8iuU/s640/hello_world_2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1808410472675149441-5582677967156631011?l=cylonware.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VUdWdJClEkG6YD7nGk_ywu9prok/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VUdWdJClEkG6YD7nGk_ywu9prok/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VUdWdJClEkG6YD7nGk_ywu9prok/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VUdWdJClEkG6YD7nGk_ywu9prok/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Cylonware/~4/8d2Q8iNoCVY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cylonware.blogspot.com/feeds/5582677967156631011/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://cylonware.blogspot.com/2010/03/introduction-to-c-programming-language.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1808410472675149441/posts/default/5582677967156631011?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1808410472675149441/posts/default/5582677967156631011?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Cylonware/~3/8d2Q8iNoCVY/introduction-to-c-programming-language.html" title="Introduction to C Programming Language - Hello World!" /><author><name>Firestorm</name><uri>http://www.blogger.com/profile/08074339540164412999</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://4.bp.blogspot.com/_6O9NyHwfGU0/TPMRkrH80uI/AAAAAAAAADA/8sJfzHgWi88/S220/vmp.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_6O9NyHwfGU0/S45ZqxkAywI/AAAAAAAAABA/E4nX1RUtLu4/s72-c/hello_world_1.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://cylonware.blogspot.com/2010/03/introduction-to-c-programming-language.html</feedburner:origLink></entry></feed>

