1.first c program
DESCRIPTION
How to write a program in cTRANSCRIPT
First C program
Talk to a Teacherhttp://spoken-tutorial.org
National Mission on Education through ICThttp://sakshat.ac.in
Ashwini R PatilIIT Bombay
4 April 2012
May 31, 2012Ashwini R Patil First C program
Learning Objectives
I How to write a simple C program
I How to compile it
I How to execute it
I Some common errors and their solutions
Ashwini R Patil First C program
Learning Objectives
I How to write a simple C program
I How to compile it
I How to execute it
I Some common errors and their solutions
Ashwini R Patil First C program
Learning Objectives
I How to write a simple C program
I How to compile it
I How to execute it
I Some common errors and their solutions
Ashwini R Patil First C program
Learning Objectives
I How to write a simple C program
I How to compile it
I How to execute it
I Some common errors and their solutions
Ashwini R Patil First C program
Learning Objectives
I How to write a simple C program
I How to compile it
I How to execute it
I Some common errors and their solutions
Ashwini R Patil First C program
System Requirements
I Ubuntu Operating System version 11.10
I GCC Compiler version 4.6.1 on Ubuntu
Ashwini R Patil First C program
System Requirements
I Ubuntu Operating System version 11.10
I GCC Compiler version 4.6.1 on Ubuntu
Ashwini R Patil First C program
System Requirements
I Ubuntu Operating System version 11.10
I GCC Compiler version 4.6.1 on Ubuntu
Ashwini R Patil First C program
Prerequisites
I Ubuntu Operating System
I An Editor
I Eg. vim, gedit
I For relevant tutorials please visit ourwebsite: http://spoken-tutorial.org
Ashwini R Patil First C program
Prerequisites
I Ubuntu Operating System
I An Editor
I Eg. vim, gedit
I For relevant tutorials please visit ourwebsite: http://spoken-tutorial.org
Ashwini R Patil First C program
Prerequisites
I Ubuntu Operating System
I An Editor
I Eg. vim, gedit
I For relevant tutorials please visit ourwebsite: http://spoken-tutorial.org
Ashwini R Patil First C program
Prerequisites
I Ubuntu Operating System
I An Editor
I Eg. vim, gedit
I For relevant tutorials please visit ourwebsite: http://spoken-tutorial.org
Ashwini R Patil First C program
Prerequisites
I Ubuntu Operating System
I An Editor
I Eg. vim, gedit
I For relevant tutorials please visit ourwebsite: http://spoken-tutorial.org
Ashwini R Patil First C program
function main()
I Every program should have one main()function
I There should NOT be more than onemain() function
I Otherwise the compiler cannot locate thebeginning of the program
I The empty pair of parentheses indicatesthat main has no arguments
Ashwini R Patil First C program
function main()
I Every program should have one main()function
I There should NOT be more than onemain() function
I Otherwise the compiler cannot locate thebeginning of the program
I The empty pair of parentheses indicatesthat main has no arguments
Ashwini R Patil First C program
function main()
I Every program should have one main()function
I There should NOT be more than onemain() function
I Otherwise the compiler cannot locate thebeginning of the program
I The empty pair of parentheses indicatesthat main has no arguments
Ashwini R Patil First C program
function main()
I Every program should have one main()function
I There should NOT be more than onemain() function
I Otherwise the compiler cannot locate thebeginning of the program
I The empty pair of parentheses indicatesthat main has no arguments
Ashwini R Patil First C program
Assignment
I Write a program to print“Welcome to the World of C”
I See what happens if \n is not included inthe printf statement
Ashwini R Patil First C program
About the Spoken Tutorial Project
I Watch the video available athttp://spoken-tutorial.org/What is a Spoken Tutorial
I It summarises the Spoken Tutorial project
I If you do not have good bandwidth, youcan download and watch it
Ashwini R Patil First C program
Spoken Tutorial Workshops
The Spoken Tutorial Project Team
I Conducts workshops using spokentutorials
I Gives certificates to those who pass anonline test
I For more details, please write [email protected]
Ashwini R Patil First C program
Acknowledgements
I Spoken Tutorial Project is a part of theTalk to a Teacher project
I It is supported by the National Missionon Education through ICT, MHRD,Government of India
I More information on this Mission isavailable at:http://spoken-tutorial.org/NMEICT-Intro
Ashwini R Patil First C program