SlideShare ist ein Scribd-Unternehmen logo
1 von 12
 C language is very easy and a powerful
computer programming language bbecause it
is very small and structured.
 C language is a Middle level language i.e.
suitable for systems programming.
 It is a case sensitive language.
 It is highly portable language.
 C is a procedural or sequential language.
 It is easy to learn and understand.
 It is a small language
 C language was invented by DENNIS RITCHIE
at Bell Laboratories in between 1969 1nd
1973.
 C language was standardized by ANSI in
1989 and known as ANSI C.
 Portability- C is a machine independent and
highly portable language.
 Robustness- C has a set of built in functions and
operators.
 Easy to understand and learn as it has only 32
keywords.
 Fast and Efficient
 Flexible- It is not only for system but also for
embedded system commercial data processing.
 Integration with UNIX.
 C has a large library of functions.
 Complexity- Difficulty in solving complex
problems.
 Difficult to debug.
 Difficult to modify.
 Error-prone
 Diffficult to write large programs.
 Character set
 Data Types
 Constants
 Keywords
 Variables
 Grammer(Syntax & semantics
 Documentation Section (optional)
 Link Section (optional)
 Defining Section (optional)
 Global Declaration Section (optional)
 Main Function Section ( )
{
Declaration part
Executable part
}
 Subprogram Section (optional)
 Function 1
 Function 2
 Function n
/* This is a sample C program. */
#include <stdio.h>
#include <conio.h>
main ( )
{
clrscr ( );
printf (“Hello n”);
getch ( );
}
C program is executed in 3 phases:
 Create a source code file.
[Empty file(input) – Source Code
file(output)]
 Compilation
[Source code file(input) – object
file(output)]
 Linking
[Object File(input) – Executable File
(output)]
Introduction to  c
Introduction to  c

Weitere ähnliche Inhalte

Was ist angesagt?

D turner techreport
D turner techreportD turner techreport
D turner techreportdavid114811
 
Programming language
Programming languageProgramming language
Programming languageShuja Qais
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 
Generations of programming language
Generations of programming languageGenerations of programming language
Generations of programming languageJAIDEVPAUL
 
Program & language generation
Program & language generationProgram & language generation
Program & language generationBuxoo Abdullah
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming LanguagesTarun Sharma
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C LanguageTarun Sharma
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Krishna Sai
 
Programing languages
Programing languagesPrograming languages
Programing languagesDanyal Ahmad
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 

Was ist angesagt? (19)

D turner techreport
D turner techreportD turner techreport
D turner techreport
 
Programming language
Programming languageProgramming language
Programming language
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
C programming
C programmingC programming
C programming
 
C basic
C basicC basic
C basic
 
Generations of programming language
Generations of programming languageGenerations of programming language
Generations of programming language
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Lecture # 1
Lecture # 1Lecture # 1
Lecture # 1
 
Programming landuages
Programming landuagesProgramming landuages
Programming landuages
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languages
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-
 
Programing languages
Programing languagesPrograming languages
Programing languages
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
C Language
C LanguageC Language
C Language
 
A&a&r&n
A&a&r&nA&a&r&n
A&a&r&n
 

Andere mochten auch

FullSIX FullSIGHTS October 2014
FullSIX FullSIGHTS October 2014FullSIX FullSIGHTS October 2014
FullSIX FullSIGHTS October 2014FullSIX Spain
 
FullSIX FullSIGHTS April 2014
FullSIX FullSIGHTS April 2014FullSIX FullSIGHTS April 2014
FullSIX FullSIGHTS April 2014FullSIX Spain
 
FullSIX FullSIGHTS November 2014
FullSIX FullSIGHTS November 2014FullSIX FullSIGHTS November 2014
FullSIX FullSIGHTS November 2014FullSIX Spain
 
FullSIX FullSIGHTS September 2015
FullSIX FullSIGHTS September 2015FullSIX FullSIGHTS September 2015
FullSIX FullSIGHTS September 2015FullSIX Spain
 
FullSIX FullSIGHTS March 2015
FullSIX FullSIGHTS March 2015FullSIX FullSIGHTS March 2015
FullSIX FullSIGHTS March 2015FullSIX Spain
 
FullSIX FullSIGHTS March 2014
FullSIX FullSIGHTS March 2014FullSIX FullSIGHTS March 2014
FullSIX FullSIGHTS March 2014FullSIX Spain
 
FullSIX FullSIGHTS July 2014
FullSIX FullSIGHTS July 2014FullSIX FullSIGHTS July 2014
FullSIX FullSIGHTS July 2014FullSIX Spain
 
FullSIX FullSIGHTS Febrero 2016
FullSIX FullSIGHTS Febrero 2016FullSIX FullSIGHTS Febrero 2016
FullSIX FullSIGHTS Febrero 2016FullSIX Spain
 
การลดน้ำหนัก
การลดน้ำหนักการลดน้ำหนัก
การลดน้ำหนักjinnapat2539
 
FullSIX FullSIGHTS June 2014
FullSIX FullSIGHTS June 2014FullSIX FullSIGHTS June 2014
FullSIX FullSIGHTS June 2014FullSIX Spain
 
FullSIX FullSIGHTS April 2015
FullSIX FullSIGHTS April 2015FullSIX FullSIGHTS April 2015
FullSIX FullSIGHTS April 2015FullSIX Spain
 
FullSIX FullSIGHTS January 2015
FullSIX FullSIGHTS January 2015FullSIX FullSIGHTS January 2015
FullSIX FullSIGHTS January 2015FullSIX Spain
 
FullSIX FullSIGHTS July 2015
FullSIX FullSIGHTS July 2015FullSIX FullSIGHTS July 2015
FullSIX FullSIGHTS July 2015FullSIX Spain
 
FullSIX FullSIGHTS September 2014
FullSIX FullSIGHTS September 2014FullSIX FullSIGHTS September 2014
FullSIX FullSIGHTS September 2014FullSIX Spain
 
FullSIX FullSIGHTS October 2015
FullSIX FullSIGHTS October 2015FullSIX FullSIGHTS October 2015
FullSIX FullSIGHTS October 2015FullSIX Spain
 
FullSIX FullSIGHTS February 2015
FullSIX FullSIGHTS February 2015FullSIX FullSIGHTS February 2015
FullSIX FullSIGHTS February 2015FullSIX Spain
 
Introduction of Alpine Creative
Introduction of Alpine CreativeIntroduction of Alpine Creative
Introduction of Alpine CreativeAlpine Creative
 
FullSIX FullSIGHTS March 2016
FullSIX FullSIGHTS March 2016FullSIX FullSIGHTS March 2016
FullSIX FullSIGHTS March 2016FullSIX Spain
 

Andere mochten auch (20)

FullSIX FullSIGHTS October 2014
FullSIX FullSIGHTS October 2014FullSIX FullSIGHTS October 2014
FullSIX FullSIGHTS October 2014
 
FullSIX FullSIGHTS April 2014
FullSIX FullSIGHTS April 2014FullSIX FullSIGHTS April 2014
FullSIX FullSIGHTS April 2014
 
FullSIX FullSIGHTS November 2014
FullSIX FullSIGHTS November 2014FullSIX FullSIGHTS November 2014
FullSIX FullSIGHTS November 2014
 
FullSIX FullSIGHTS September 2015
FullSIX FullSIGHTS September 2015FullSIX FullSIGHTS September 2015
FullSIX FullSIGHTS September 2015
 
FullSIX FullSIGHTS March 2015
FullSIX FullSIGHTS March 2015FullSIX FullSIGHTS March 2015
FullSIX FullSIGHTS March 2015
 
District
DistrictDistrict
District
 
FullSIX FullSIGHTS March 2014
FullSIX FullSIGHTS March 2014FullSIX FullSIGHTS March 2014
FullSIX FullSIGHTS March 2014
 
FullSIX FullSIGHTS July 2014
FullSIX FullSIGHTS July 2014FullSIX FullSIGHTS July 2014
FullSIX FullSIGHTS July 2014
 
FullSIX FullSIGHTS Febrero 2016
FullSIX FullSIGHTS Febrero 2016FullSIX FullSIGHTS Febrero 2016
FullSIX FullSIGHTS Febrero 2016
 
การลดน้ำหนัก
การลดน้ำหนักการลดน้ำหนัก
การลดน้ำหนัก
 
FullSIX FullSIGHTS June 2014
FullSIX FullSIGHTS June 2014FullSIX FullSIGHTS June 2014
FullSIX FullSIGHTS June 2014
 
FullSIX FullSIGHTS April 2015
FullSIX FullSIGHTS April 2015FullSIX FullSIGHTS April 2015
FullSIX FullSIGHTS April 2015
 
FullSIX FullSIGHTS January 2015
FullSIX FullSIGHTS January 2015FullSIX FullSIGHTS January 2015
FullSIX FullSIGHTS January 2015
 
FullSIX FullSIGHTS July 2015
FullSIX FullSIGHTS July 2015FullSIX FullSIGHTS July 2015
FullSIX FullSIGHTS July 2015
 
FullSIX FullSIGHTS September 2014
FullSIX FullSIGHTS September 2014FullSIX FullSIGHTS September 2014
FullSIX FullSIGHTS September 2014
 
FullSIX FullSIGHTS October 2015
FullSIX FullSIGHTS October 2015FullSIX FullSIGHTS October 2015
FullSIX FullSIGHTS October 2015
 
Networkswitch
Networkswitch Networkswitch
Networkswitch
 
FullSIX FullSIGHTS February 2015
FullSIX FullSIGHTS February 2015FullSIX FullSIGHTS February 2015
FullSIX FullSIGHTS February 2015
 
Introduction of Alpine Creative
Introduction of Alpine CreativeIntroduction of Alpine Creative
Introduction of Alpine Creative
 
FullSIX FullSIGHTS March 2016
FullSIX FullSIGHTS March 2016FullSIX FullSIGHTS March 2016
FullSIX FullSIGHTS March 2016
 

Ähnlich wie Introduction to c

Ähnlich wie Introduction to c (20)

Introduction to C Programming (1).pdf
Introduction to C Programming (1).pdfIntroduction to C Programming (1).pdf
Introduction to C Programming (1).pdf
 
Introduction to c
Introduction to cIntroduction to c
Introduction to c
 
3. Introduction to C language ||Learn C Programming Complete.
3. Introduction to C language ||Learn C Programming Complete.3. Introduction to C language ||Learn C Programming Complete.
3. Introduction to C language ||Learn C Programming Complete.
 
8505548.ppt
8505548.ppt8505548.ppt
8505548.ppt
 
Why C is Called Structured Programming Language
Why C is Called Structured Programming LanguageWhy C is Called Structured Programming Language
Why C is Called Structured Programming Language
 
1.C Programming Language.pdf
1.C Programming Language.pdf1.C Programming Language.pdf
1.C Programming Language.pdf
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
 
What is C.docx
What is C.docxWhat is C.docx
What is C.docx
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Unit 1
Unit 1Unit 1
Unit 1
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
 
Learn c programming
Learn c programmingLearn c programming
Learn c programming
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
class1.pdf
class1.pdfclass1.pdf
class1.pdf
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Introduction to embedded c
Introduction to embedded cIntroduction to embedded c
Introduction to embedded c
 

Kürzlich hochgeladen

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxchumtiyababu
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 

Kürzlich hochgeladen (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 

Introduction to c

  • 1.
  • 2.  C language is very easy and a powerful computer programming language bbecause it is very small and structured.  C language is a Middle level language i.e. suitable for systems programming.  It is a case sensitive language.  It is highly portable language.  C is a procedural or sequential language.  It is easy to learn and understand.  It is a small language
  • 3.  C language was invented by DENNIS RITCHIE at Bell Laboratories in between 1969 1nd 1973.  C language was standardized by ANSI in 1989 and known as ANSI C.
  • 4.
  • 5.  Portability- C is a machine independent and highly portable language.  Robustness- C has a set of built in functions and operators.  Easy to understand and learn as it has only 32 keywords.  Fast and Efficient  Flexible- It is not only for system but also for embedded system commercial data processing.  Integration with UNIX.  C has a large library of functions.
  • 6.  Complexity- Difficulty in solving complex problems.  Difficult to debug.  Difficult to modify.  Error-prone  Diffficult to write large programs.
  • 7.  Character set  Data Types  Constants  Keywords  Variables  Grammer(Syntax & semantics
  • 8.  Documentation Section (optional)  Link Section (optional)  Defining Section (optional)  Global Declaration Section (optional)  Main Function Section ( ) { Declaration part Executable part }  Subprogram Section (optional)  Function 1  Function 2  Function n
  • 9. /* This is a sample C program. */ #include <stdio.h> #include <conio.h> main ( ) { clrscr ( ); printf (“Hello n”); getch ( ); }
  • 10. C program is executed in 3 phases:  Create a source code file. [Empty file(input) – Source Code file(output)]  Compilation [Source code file(input) – object file(output)]  Linking [Object File(input) – Executable File (output)]