SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Prepared By:
Hemdeep Bhavsar
Mechatronics Engineer
 BASIC, FORTON, COBOL, PASCAL – High level
languages. These are application specific i.e. they are
used to develop application related to particular field.
 Assembly language and machine language – low level
languages. These are machine level languages and
designed to give machine efficiency.
 C is middle level language. It provides facilities of the
both high level language and low level language. It is not
application specific. It can be used to develop many
different types of the applications. Thus C is a general. It
is not hardware or system dependent. Hence portable
programs can be written with C compiler and operating
system can be written using C.
 General purpose structured language : the
instructions consists of a algebraic expression
supported with English keyword such as if, else, for,
goto, continue, break etc.
 Programming language : It is simple to implement and
highly effective.
 Compatible language : It can run on all machines right
from 8088 to recent machines.
 Concise language : Only a small set of instructions are
required to get a task done.
 Rich set of built in functions.
 Provides variety of the data types, operators and
functions which makes it’s code highly efficient and fast.
 Supports the pointers which can directly access the
address of the variable in the computer’s memory.
 Has only 32 keywords.
 Modular programming : It is a logical collection of a
one or more functions of modules.
 Provide dynamic memory allocation.
 Extensible : continuously adds the library functions
supported by the C library.
 Middle level language : it provides high level
programming supports as well as low level programming
supports .
 C does not supports inheritance, makes it more
complex to use because everything has to be written
from scratch.
 The switch statement doesn’t allow float data type.
 The switch statement doesn’t allow logical operators.
 Pointers are difficult to handle in ‘C’.
 Provide only one major memory allocation function:
malloc
 C statements having a specific and complicated
syntax that programmer needs to learn.
 Compilers, libraries, and interpreters of other high
level languages are often implemented in C.
 Right from creating other software’s like “Unix”,
“Windows”, and many Antivirus etc. C is also
used in developing many applications.
 C is also used to write programs like “ Embedded
Device”, Chip designing, Industrial Automobile
production etc.
 It is a combination of the high level language and
low level language.
Documentation section
/* tells the purpose of the program */
// program to add two numbers.
Link section
#include<stdio.h>
Definition section
#define PI 3.14
Global variable declaration
main() function section
{
variable declaration/initialization;
program statements;
}
Subprogram section
Function 1()
{
statements;
}
 Documentation section consists of a statements.
They are used in a program to improve the
readability and understanding.
 Comments are not executed in the programming.
 Comments help to understand the program by
user.
 Comments help to understand logic of the
program.
 Single line comment denoted by //.
 Multiple line comments denoted by /*……*/.
 It is consists of a preprocessor directives which
link the compiler to the standard library functions.
 We include the different library functions in the C.
 They are availabele in the header files.
 #include<stdio.h> is a header file consists of a
standard IO functions.
 #include< math.h> consists of a mathematical
functions.
 Defines all symbolic constants.
 It is declares global variable.
 They are used in more than one functions.
 They are delcared outside the all functions.
 Is a special and important function used ny C
program to tell compiler where the program starts.
 Every program has exactly one main() function.
 If it consists of more than one compiler can’t tell
from where program has to be start.
 The opening’{‘ and closing ‘}’ braces are indicates
begin and end of the main() function.
 All C statements always terminate with the a
semicolon(;).
Intoduction to c language

Weitere ähnliche Inhalte

Was ist angesagt?

Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
Suneel Dogra
 
Language processor
Language processorLanguage processor
Language processor
Abha Damani
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
Ibrahim Elewah
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
smkengkilili2011
 

Was ist angesagt? (20)

presentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C languagepresentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C language
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
 
C lecture notes new
C lecture notes newC lecture notes new
C lecture notes new
 
Language Translator ( Compiler)
Language Translator ( Compiler)Language Translator ( Compiler)
Language Translator ( Compiler)
 
LANGUAGE TRANSLATOR
LANGUAGE TRANSLATORLANGUAGE TRANSLATOR
LANGUAGE TRANSLATOR
 
Language translator
Language translatorLanguage translator
Language translator
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Language processor
Language processorLanguage processor
Language processor
 
Presentation on C programming language
Presentation on C programming languagePresentation on C programming language
Presentation on C programming language
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Assembler
AssemblerAssembler
Assembler
 
Planning to computer program(southeast university)
Planning to computer program(southeast university)Planning to computer program(southeast university)
Planning to computer program(southeast university)
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Types of system software
Types of system softwareTypes of system software
Types of system software
 
Notacd07
Notacd07Notacd07
Notacd07
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 

Ähnlich wie Intoduction to c language

Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic concepts
ssuserf86fba
 

Ähnlich wie Intoduction to c language (20)

Programming in c
Programming in cProgramming in c
Programming in c
 
Introduction to C Programming Language.pptx
Introduction to C Programming Language.pptxIntroduction to C Programming Language.pptx
Introduction to C Programming Language.pptx
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7
 
Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic concepts
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
Programming in C
Programming in CProgramming in C
Programming in C
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
 
C.pdf
C.pdfC.pdf
C.pdf
 
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshuunit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
 
Unit 1
Unit 1Unit 1
Unit 1
 
Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
C programming
C programmingC programming
C programming
 
C programming
C programming C programming
C programming
 
Software Concepts Notes
Software Concepts NotesSoftware Concepts Notes
Software Concepts Notes
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
 

Mehr von Student

flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student
 
Contributor personality development unit 2
Contributor personality  development unit 2Contributor personality  development unit 2
Contributor personality development unit 2
Student
 
Noise pollution
Noise pollutionNoise pollution
Noise pollution
Student
 
Land pollution
Land pollutionLand pollution
Land pollution
Student
 
Women social activities
Women social activitiesWomen social activities
Women social activities
Student
 

Mehr von Student (16)

Solids
SolidsSolids
Solids
 
PROJECTION OF POINTS
PROJECTION OF POINTSPROJECTION OF POINTS
PROJECTION OF POINTS
 
Engineering Planes
Engineering PlanesEngineering Planes
Engineering Planes
 
Orthographic projection
Orthographic projectionOrthographic projection
Orthographic projection
 
Engineering line
Engineering lineEngineering line
Engineering line
 
Engineering graphics
Engineering graphicsEngineering graphics
Engineering graphics
 
Engineering Curves
Engineering CurvesEngineering Curves
Engineering Curves
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
 
Contributor personality development unit 2
Contributor personality  development unit 2Contributor personality  development unit 2
Contributor personality development unit 2
 
Gaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equationGaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equation
 
Eme (air compressors)
Eme (air compressors)Eme (air compressors)
Eme (air compressors)
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 
Noise pollution
Noise pollutionNoise pollution
Noise pollution
 
Land pollution
Land pollutionLand pollution
Land pollution
 
13 mc558 eg
13 mc558 eg13 mc558 eg
13 mc558 eg
 
Women social activities
Women social activitiesWomen social activities
Women social activities
 

Kürzlich hochgeladen

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Kürzlich hochgeladen (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
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
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
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...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
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
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
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
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 

Intoduction to c language

  • 2.  BASIC, FORTON, COBOL, PASCAL – High level languages. These are application specific i.e. they are used to develop application related to particular field.  Assembly language and machine language – low level languages. These are machine level languages and designed to give machine efficiency.  C is middle level language. It provides facilities of the both high level language and low level language. It is not application specific. It can be used to develop many different types of the applications. Thus C is a general. It is not hardware or system dependent. Hence portable programs can be written with C compiler and operating system can be written using C.
  • 3.  General purpose structured language : the instructions consists of a algebraic expression supported with English keyword such as if, else, for, goto, continue, break etc.  Programming language : It is simple to implement and highly effective.  Compatible language : It can run on all machines right from 8088 to recent machines.  Concise language : Only a small set of instructions are required to get a task done.  Rich set of built in functions.  Provides variety of the data types, operators and functions which makes it’s code highly efficient and fast.
  • 4.  Supports the pointers which can directly access the address of the variable in the computer’s memory.  Has only 32 keywords.  Modular programming : It is a logical collection of a one or more functions of modules.  Provide dynamic memory allocation.  Extensible : continuously adds the library functions supported by the C library.  Middle level language : it provides high level programming supports as well as low level programming supports .
  • 5.  C does not supports inheritance, makes it more complex to use because everything has to be written from scratch.  The switch statement doesn’t allow float data type.  The switch statement doesn’t allow logical operators.  Pointers are difficult to handle in ‘C’.  Provide only one major memory allocation function: malloc  C statements having a specific and complicated syntax that programmer needs to learn.
  • 6.  Compilers, libraries, and interpreters of other high level languages are often implemented in C.  Right from creating other software’s like “Unix”, “Windows”, and many Antivirus etc. C is also used in developing many applications.  C is also used to write programs like “ Embedded Device”, Chip designing, Industrial Automobile production etc.  It is a combination of the high level language and low level language.
  • 7. Documentation section /* tells the purpose of the program */ // program to add two numbers. Link section #include<stdio.h> Definition section #define PI 3.14 Global variable declaration main() function section { variable declaration/initialization; program statements; } Subprogram section Function 1() { statements; }
  • 8.  Documentation section consists of a statements. They are used in a program to improve the readability and understanding.  Comments are not executed in the programming.  Comments help to understand the program by user.  Comments help to understand logic of the program.  Single line comment denoted by //.  Multiple line comments denoted by /*……*/.
  • 9.  It is consists of a preprocessor directives which link the compiler to the standard library functions.  We include the different library functions in the C.  They are availabele in the header files.  #include<stdio.h> is a header file consists of a standard IO functions.  #include< math.h> consists of a mathematical functions.
  • 10.  Defines all symbolic constants.
  • 11.  It is declares global variable.  They are used in more than one functions.  They are delcared outside the all functions.
  • 12.  Is a special and important function used ny C program to tell compiler where the program starts.  Every program has exactly one main() function.  If it consists of more than one compiler can’t tell from where program has to be start.  The opening’{‘ and closing ‘}’ braces are indicates begin and end of the main() function.  All C statements always terminate with the a semicolon(;).