<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=C-and-C-Plus-Plus%2FC2%2FFirst-C-Program%2FEnglish-timed</id>
		<title>C-and-C-Plus-Plus/C2/First-C-Program/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=C-and-C-Plus-Plus%2FC2%2FFirst-C-Program%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;action=history"/>
		<updated>2026-04-18T11:56:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2860&amp;oldid=prev</id>
		<title>Sneha at 09:22, 22 February 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2860&amp;oldid=prev"/>
				<updated>2013-02-22T09:22:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:22, 22 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| border = 1&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|'''Time''''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|'''Narration'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{|Border=1&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! Visual Cue&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! Narration&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sneha</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2859&amp;oldid=prev</id>
		<title>Sneha at 09:21, 22 February 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2859&amp;oldid=prev"/>
				<updated>2013-02-22T09:21:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:21, 22 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Border&lt;/ins&gt;=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/ins&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;style&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;border-spacing:0;&lt;/del&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Visual Cue&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Visual Cue&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Narration&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Narration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sneha</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2858&amp;oldid=prev</id>
		<title>Sneha: Created page with '  {| style=&quot;border-spacing:0;&quot; ! Visual Cue ! Narration  |- | 00.02 | | Welcome to the spoken tutorial on First C program.   |- | 00.06 |  In this tutorial, we  will learn  |- | …'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=C-and-C-Plus-Plus/C2/First-C-Program/English-timed&amp;diff=2858&amp;oldid=prev"/>
				<updated>2013-02-22T09:21:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;  {| style=&amp;quot;border-spacing:0;&amp;quot; ! Visual Cue ! Narration  |- | 00.02 | | Welcome to the spoken tutorial on First C program.   |- | 00.06 |  In this tutorial, we  will learn  |- | …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
! Visual Cue&lt;br /&gt;
! Narration&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.02&lt;br /&gt;
| | Welcome to the spoken tutorial on First C program. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.06&lt;br /&gt;
|  In this tutorial, we  will learn&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.08&lt;br /&gt;
| How to write a simple C program &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.11&lt;br /&gt;
| How to compile it&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.13&lt;br /&gt;
| How to execute it&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.14&lt;br /&gt;
|We will also explain some common errors and their solutions. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00.19 &lt;br /&gt;
| | To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.22&lt;br /&gt;
|Ubuntu operating system version 11.10 and gcc Compiler version 4.6.1 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.31&lt;br /&gt;
|  To practice this tutorial, &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.33&lt;br /&gt;
|You should be familiar with Ubuntu Operating System and an Editor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.39&lt;br /&gt;
|Some editors are vim and gedit&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.42&lt;br /&gt;
|I will use gedit in this tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.46&lt;br /&gt;
|For relevant tutorials please visit our website: [http://spoken-tutorial.org/ http://spoken-tutorial.org] &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00.51&lt;br /&gt;
| Let me tell you how to write a C program through an example &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00.56&lt;br /&gt;
|Open the terminal window  by pressing '''Ctrl, Alt and T '''keys simultaneously on your keyboard.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.07&lt;br /&gt;
|  Now let's open the text editor. So, at the prompt, type &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.12&lt;br /&gt;
|'''“gedit”''' space '''“talk”''' dot '''“c”''' space “&amp;amp;”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.20&lt;br /&gt;
|'''We use ampersand (&amp;amp;) to free up the prompt '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.25&lt;br /&gt;
| Please note that all the '''C''' files will  have  extension dot '''“c”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01.31&lt;br /&gt;
|  Now Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.33&lt;br /&gt;
|  the text editor has opened&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.37&lt;br /&gt;
|  Let us start to write a program &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.39&lt;br /&gt;
| Type double slash '''“//”''' space &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.42&lt;br /&gt;
|'''“My first C program”.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01.48&lt;br /&gt;
| Here, double slash is used to comment the line&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.52&lt;br /&gt;
|Comments are used to understand the flow of program&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.56&lt;br /&gt;
|It is useful for documentation&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01.58 &lt;br /&gt;
|It gives us information about the program&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.01&lt;br /&gt;
|The double slash is called as single line comment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.07 &lt;br /&gt;
| Now press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02.09&lt;br /&gt;
|Type hash '''“#include”''' space opening bracket , closing bracket''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.17&lt;br /&gt;
| It is always a good practice to complete the brackets first, and then start writing inside it&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.24&lt;br /&gt;
| Now  Inside the bracket, type'''“stdio”''' dot”.” “'''h” '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.30&lt;br /&gt;
|  '''stdio.h''' is a '''header file'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.34&lt;br /&gt;
|A '''program''' must contain this header file when it uses standard '''input/output functions'''.Now press Enter &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.43&lt;br /&gt;
|   type '''“int” '''space''' “main” '''opening bracket,&lt;br /&gt;
 closing bracket '''“()”. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.50&lt;br /&gt;
| | ' '''main''' is a special '''function''' &lt;br /&gt;
|-&lt;br /&gt;
| 02.53&lt;br /&gt;
|It denotes that the execution of the program begins from this line&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02.58&lt;br /&gt;
|The opening bracket and  closing bracket is called as parenthesis.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.04&lt;br /&gt;
|  Parenthesis followed by '''main''' is to tell the user that '''main''' is a '''function'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.11&lt;br /&gt;
| Here the '''int''' '''main function''' takes no '''arguments''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.15&lt;br /&gt;
|It returns a value of type '''integer'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.19&lt;br /&gt;
| We will learn about '''data types''' in another tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.23&lt;br /&gt;
| Now  Let us switch to the slides to know more about  '''main function'''. Let us go to the next slide.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.30&lt;br /&gt;
|  Every '''program'''should have  one main function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.33&lt;br /&gt;
|There should NOT be more than one main function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.37&lt;br /&gt;
|Otherwise the compiler cannot locate the beginning of the program &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.41&lt;br /&gt;
|The empty pair of parentheses indicates that main has no '''arguments'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.47&lt;br /&gt;
|The concept of arguments will be discussed in detail in the upcoming tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.52&lt;br /&gt;
| Now let us come back to our program. Press Enter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03.58&lt;br /&gt;
| Type opening curly brace '''“{”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.00&lt;br /&gt;
|The opening curly bracket marks the beginning of the '''function''' '''main'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.05&lt;br /&gt;
|Then  Type  closing curly  bracket '''“}”'''&lt;br /&gt;
 &lt;br /&gt;
|-&lt;br /&gt;
| 04.08&lt;br /&gt;
|The closing curly bracket indicates the end of the '''function''' '''main'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.13&lt;br /&gt;
| Now Inside the bracket   &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.14&lt;br /&gt;
|press '''Enter''' twice,  move the cursor one line up&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.20&lt;br /&gt;
| Indentation makes the code easier to read&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.23&lt;br /&gt;
|It also helps to locate errors faster&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.26&lt;br /&gt;
|So let us give three space here&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.29&lt;br /&gt;
| And  Type''' “printf” ''' opening bracket closing bracket '''“()” '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.34&lt;br /&gt;
|'''printf '''is a standard C function to print the output on the terminal &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.39&lt;br /&gt;
|  Here inside the brackets, within double quotes, &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.44&lt;br /&gt;
|Anything within the double quotes in the printf statement will be printed on the terminal.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04.50&lt;br /&gt;
|Type'''“Talk To a Teacher '''backslash '''n”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.00&lt;br /&gt;
|Backslash n '''“\n” '''signifies newline&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.03&lt;br /&gt;
|As a result, after execution of the '''printf '''function, the cursor moves to the new line&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.11&lt;br /&gt;
| Every '''C''' statement must end with a '''semicolon “;”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.15&lt;br /&gt;
|Hence, type it at the end of this line. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.19&lt;br /&gt;
|'''Semicolon''' acts as a statement terminator.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|05.24&lt;br /&gt;
|Now press '''Enter''' give three space here&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|05.28&lt;br /&gt;
| And type '''“return”''' space''' “0”''' and a '''semicolon''' '''“;”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.34&lt;br /&gt;
| This statement returns the integer zero&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.38&lt;br /&gt;
|An integer has to be returned for this function because the function type is '''int'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.45&lt;br /&gt;
|The '''return''' statement marks the end of executable statements&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.51&lt;br /&gt;
|We will learn more about the returned values in another tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05.56&lt;br /&gt;
| Now click on&amp;quot;'''Save'''&amp;quot; button to save the file &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.00&lt;br /&gt;
|It is a good habit to save files frequently&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.03&lt;br /&gt;
|This will protect you from sudden power failures&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.06&lt;br /&gt;
|It will also be useful in case the applications were to crash.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.11&lt;br /&gt;
|  Let  us now compile the program come back to a  terminal.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.15&lt;br /&gt;
|Type '''“gcc”''' space '''“talk.c”''' space hyphen “-'''o”''' space '''“myoutput”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.24&lt;br /&gt;
| '''gcc''' is the compiler&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.27&lt;br /&gt;
|'''talk.c''' is our filename .&lt;br /&gt;
|-&lt;br /&gt;
| 06.30&lt;br /&gt;
|'''-o''' '''myoutput''' says that the executable should go to the file '''myoutput'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.37&lt;br /&gt;
|  Now Press''' Enter. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.39&lt;br /&gt;
|We see that the program is compiled&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.42&lt;br /&gt;
|By typing '''ls -lrt''', we can see that '''myoutput''' is the last file to be created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06.54&lt;br /&gt;
|To execute the program, type dot slash '''“./myoutput” ''' press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|07.01&lt;br /&gt;
|  Here the output is displayed as '''“Talk To a Teacher”.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.06&lt;br /&gt;
|  As I said before, return is the last statement to be executed&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.10&lt;br /&gt;
|Thus after the return statement nothing will be executed. Let us try it out.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|07.16 &lt;br /&gt;
| come back to our program.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.17&lt;br /&gt;
| After the '''return''' statement, let us include one more printf statement type printf(&amp;quot;Welcome \n&amp;quot;); &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.35&lt;br /&gt;
| Now click on   save.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.37&lt;br /&gt;
|Let us compile  and execute come back to our terminal.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|07.41 &lt;br /&gt;
|  you can recall the previously entered commands by using '''up arrow'''key.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.46&lt;br /&gt;
|That is what I did now&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.51&lt;br /&gt;
|We see that the second  statements  '''welcome''' is  not executed&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07.58&lt;br /&gt;
| Now come back to our program&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.00&lt;br /&gt;
|Let us write the 'Welcome' statement above the return statement&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.07&lt;br /&gt;
|  Click on  Save.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.09&lt;br /&gt;
|Let us compile and execute&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.15&lt;br /&gt;
|We see that the second '''printf''' statement ''welcome'' has also has been executed&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.23&lt;br /&gt;
| Now let us see the common errors which we can come across.  Come back to our program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.29 &lt;br /&gt;
| Suppose here I  will the miss the dot in '''“stdio.h”''' Click on save.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.35&lt;br /&gt;
| Let us  compile and execute .&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.42&lt;br /&gt;
|We see that&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.43&lt;br /&gt;
|There is a fatal error  at line no.2 in our '''talk.c''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.48&lt;br /&gt;
|The compiler cannot find a '''header file''' with the name '''“stdioh”'''hence it is giving an error no such file or directory.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.59&lt;br /&gt;
|And the compilation is terminated. &lt;br /&gt;
|-&lt;br /&gt;
| 09.03&lt;br /&gt;
|Let us  now fix the error come back to a   program Reinsert the dot '''“.”'''click on save &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.11&lt;br /&gt;
| Let us compile and  execute it.Yes  It is working.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.19&lt;br /&gt;
| I will show you another common error&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|09.23 &lt;br /&gt;
|Let us switch back to the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.26&lt;br /&gt;
| Now, suppose here i will miss the '''semicolon'''  at the end of the line &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.31&lt;br /&gt;
| Click on  '''Save'''.Let us compile and execute&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.42&lt;br /&gt;
| We see that there is  an error at line no.6 in our talk.c file.  That expected ''semicolon'' before  printf.&lt;br /&gt;
|-&lt;br /&gt;
| 09.51&lt;br /&gt;
|Come back to our program.  As   i said before semicolon acts as a statement terminator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09.59&lt;br /&gt;
|So it will search for it at the end of the line.5 and at the beginning of the  line.6. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.07&lt;br /&gt;
|  This is line 6&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.09&lt;br /&gt;
|  This is the last place where you can put the '''semicolon'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.13&lt;br /&gt;
|Recall that the compiler also give the error message on line 6.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.18&lt;br /&gt;
| Let us try what happens if we put the semicolon here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.24&lt;br /&gt;
| Click on '''Save''' .&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.26&lt;br /&gt;
|Let us   Compile and execute.Yes it is working &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.33&lt;br /&gt;
|Now come back to our program.  Let us type the ''semicolon'' here  at the end of this line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.41&lt;br /&gt;
| As it is a conventional practice to type  the ''semicolon'' at the end of the line. Now click on save. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.49&lt;br /&gt;
|   Let us   Compile and execute. .Yes it is working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.49&lt;br /&gt;
|Let us go back to our slides. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10.57&lt;br /&gt;
| As an Assignment &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10.59&lt;br /&gt;
|Write a program to print &amp;quot;Welcome to the World of C&amp;quot;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.03&lt;br /&gt;
|See what happens if  '''“\n”''' is not included in the '''printf''' statement.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.09&lt;br /&gt;
| This brings us to the end of this tutorial &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.12&lt;br /&gt;
| Watch the video available at the link shown http://spokentutorial.org/What\_is\_a\_Spoken\_Tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.15&lt;br /&gt;
|It summarises the Spoken Tutorial project &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.18&lt;br /&gt;
|If you do not have good bandwidth, you can download and watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.22&lt;br /&gt;
| The Spoken Tutorial Project Team &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.25&lt;br /&gt;
|Conducts workshops using spoken tutorials &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.28&lt;br /&gt;
|Gives certificates to those who pass an online test &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.32&lt;br /&gt;
|For more details, please write to contact [at] spoken hyphen tutorial dot org&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11.38&lt;br /&gt;
| Spoken Tutorial Project is a part of the Talk to a Teacher project&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.42&lt;br /&gt;
|It is supported by the National Mission on Education through ICT, MHRD, Government of India&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.48&lt;br /&gt;
|More information on this Mission is available at: http://spoken-tutorial.org\NMEICT-Intro&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11.51&lt;br /&gt;
| This is Ashwini Patil from IIT Bombay. Thank you for joining. &lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Sneha</name></author>	</entry>

	</feed>