SlideShare ist ein Scribd-Unternehmen logo
1 von 12
ACTIVE LEARNING ASSIGNMENT
TOPIC: INTRODUCTION TO “C”
History Of C
• Created By Dennis Ritchie At Bell Labs In 1972
• Originally Created To Design And Support The Unix
Operating System.
• C Compilers Are Available For Virtually Every
Platform
• In 1983 The American National Standards Institute
(ANSI) Standardized C to be called ANSI Standard C.
• ANSI C Programs That You Write Should Work With
Any ANSI C Compiler.
Features of C
• Efficient & Fast.
• Variety Of Data Types & Powerful Operators.
• Highly Portable.
• Well Suited For Structured Programming.
• Its Ability To Extend Itself.
• A Collection Of Functions.
Use Of C
• Operating Systems
• Language Compilers
• Assemblers
• Text Editors
• Print Spoolers
• Network Drivers
• Modern Programs
Data Types
• Different Types Of Variables Allow The Storing Different
Types Of Data, Hence The Name “Data Types”
• E.g. If You Had To Store The Numbers 10 And 10.0, C
Provides Two Different Data Types.
Basics Of Variables
char: A Single Byte, Holds One Character e.g. The Letter
‘a’, Although They are Stored As Integer Values
Standardized As ASCII Numbers
int: An Integer Of Fixed Length, Usually 4 bytes / 32 bits.
E.g. The Number 10 Can Be Stored In A Variable Of
Type Int.
float: Single-Precision Floating Point. e.g. The Number
10.67
double: Same As A float But With Double Precision
Basic Things For C
• Link Section- It Contains Header File. Mainly Two Header
Files:-
• 1 > stdio.h:-Standard Input Output Header File(For printf,
scanf, etc.)
• 2> conio.h:-Console Input Output Header File(For clrscr(),
getch(), etc.)
• Main Function:- It Contains Main Logic Of The Program.
Sample Program Of C
C Tokens
• C Tokens Are The Basic Buildings Blocks In C Language
Which Are Constructed Together To Write A C Program.
• Each And Every Smallest Individual Units In A C Program
Are Known As C Tokens.
C Tokens Example Program:
• int main()
{
int x, y, total;
x = 10, y = 20;
total = x + y;
Printf (“Total = %d n”, total);
}
C Tokens Are Of Six Types
• Keywords (eg: int)
• Identifiers (eg: main, total)
• Constants (eg: 10, 20)
• Strings (eg: “total”,)
• Special symbols (eg: (), {})
• Operators (eg: +, /,-,*)
Cpu.ppt INTRODUCTION TO “C”

Weitere ähnliche Inhalte

Was ist angesagt?

Python command line_14_12_2020
Python command line_14_12_2020Python command line_14_12_2020
Python command line_14_12_2020
Sugnan M
 
Replication Internals: The Life of a Write
Replication Internals: The Life of a WriteReplication Internals: The Life of a Write
Replication Internals: The Life of a Write
MongoDB
 

Was ist angesagt? (19)

Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
 
Big data quiz
Big data quizBig data quiz
Big data quiz
 
Presentation 2.pptx
Presentation 2.pptxPresentation 2.pptx
Presentation 2.pptx
 
Python command line_14_12_2020
Python command line_14_12_2020Python command line_14_12_2020
Python command line_14_12_2020
 
An Overview of LLVM Link Time Optimization
An Overview of LLVM Link Time Optimization An Overview of LLVM Link Time Optimization
An Overview of LLVM Link Time Optimization
 
Net framework
Net frameworkNet framework
Net framework
 
Introduction to knitr - May Sheffield R Users group
Introduction to knitr - May Sheffield R Users groupIntroduction to knitr - May Sheffield R Users group
Introduction to knitr - May Sheffield R Users group
 
Standard Library Functions
Standard Library FunctionsStandard Library Functions
Standard Library Functions
 
CPP17 - File IO
CPP17 - File IOCPP17 - File IO
CPP17 - File IO
 
Replication Internals: The Life of a Write
Replication Internals: The Life of a WriteReplication Internals: The Life of a Write
Replication Internals: The Life of a Write
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
GitRecruit final 1
GitRecruit final 1GitRecruit final 1
GitRecruit final 1
 
Console applications IN C#
Console applications IN C#Console applications IN C#
Console applications IN C#
 
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
 
Pict: A programming language based on the pi-calculus
Pict: A programming language based on the pi-calculusPict: A programming language based on the pi-calculus
Pict: A programming language based on the pi-calculus
 
Lecture1
Lecture1Lecture1
Lecture1
 
20 basic computer mcqs
20 basic computer mcqs20 basic computer mcqs
20 basic computer mcqs
 
OSMC 2014: Introduction into collectd | Florian Foster
OSMC 2014: Introduction into collectd | Florian FosterOSMC 2014: Introduction into collectd | Florian Foster
OSMC 2014: Introduction into collectd | Florian Foster
 
(2) collections algorithms
(2) collections algorithms(2) collections algorithms
(2) collections algorithms
 

Andere mochten auch (9)

Sample test-plan-template
Sample test-plan-templateSample test-plan-template
Sample test-plan-template
 
cpd Focus on Value
cpd Focus on Valuecpd Focus on Value
cpd Focus on Value
 
Physics Architectural Acoustics
Physics Architectural AcousticsPhysics Architectural Acoustics
Physics Architectural Acoustics
 
Vcla.ppt COMPOSITION OF LINEAR TRANSFORMATION KERNEL AND RANGE OF LINEAR TR...
Vcla.ppt COMPOSITION OF LINEAR TRANSFORMATION   KERNEL AND RANGE OF LINEAR TR...Vcla.ppt COMPOSITION OF LINEAR TRANSFORMATION   KERNEL AND RANGE OF LINEAR TR...
Vcla.ppt COMPOSITION OF LINEAR TRANSFORMATION KERNEL AND RANGE OF LINEAR TR...
 
Linux Training Partner
Linux Training PartnerLinux Training Partner
Linux Training Partner
 
Nawb 2017
Nawb 2017Nawb 2017
Nawb 2017
 
Punto y linea sobre plano
Punto y linea sobre planoPunto y linea sobre plano
Punto y linea sobre plano
 
Toksikologi Lingkungan
Toksikologi LingkunganToksikologi Lingkungan
Toksikologi Lingkungan
 
Interpersonal attraction [autosaved] save
Interpersonal attraction [autosaved] saveInterpersonal attraction [autosaved] save
Interpersonal attraction [autosaved] save
 

Ähnlich wie Cpu.ppt INTRODUCTION TO “C”

67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf
Rajb54
 

Ähnlich wie Cpu.ppt INTRODUCTION TO “C” (20)

Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Basics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptxBasics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptx
 
C language unit-1
C language unit-1C language unit-1
C language unit-1
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDYC LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
INTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c languageINTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c language
 
67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf
 
C som-programmeringssprog-bt
C som-programmeringssprog-btC som-programmeringssprog-bt
C som-programmeringssprog-bt
 
c-introduction.pptx
c-introduction.pptxc-introduction.pptx
c-introduction.pptx
 
Unit ii
Unit   iiUnit   ii
Unit ii
 
Csc240 -lecture_3
Csc240  -lecture_3Csc240  -lecture_3
Csc240 -lecture_3
 
C_Intro.ppt
C_Intro.pptC_Intro.ppt
C_Intro.ppt
 
Basic c
Basic cBasic c
Basic c
 
C tutorials
C tutorialsC tutorials
C tutorials
 
Basics of C Prog Lang.pdf
Basics of C Prog Lang.pdfBasics of C Prog Lang.pdf
Basics of C Prog Lang.pdf
 
Programming using c++ tool
Programming using c++ toolProgramming using c++ tool
Programming using c++ tool
 
Intro to .NET and Core C#
Intro to .NET and Core C#Intro to .NET and Core C#
Intro to .NET and Core C#
 
C_Programming_Notes_ICE
C_Programming_Notes_ICEC_Programming_Notes_ICE
C_Programming_Notes_ICE
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 

Mehr von Sukhvinder Singh

Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
Sukhvinder Singh
 

Mehr von Sukhvinder Singh (17)

Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
Uts ppt Urban forms and structure: Point, Linear, Radial, and Poly-nuclear de...
 
Uts Travel Demand
Uts Travel Demand Uts Travel Demand
Uts Travel Demand
 
Advanced Construction Equipments :Methods of field compaction
 Advanced Construction Equipments :Methods of field compaction  Advanced Construction Equipments :Methods of field compaction
Advanced Construction Equipments :Methods of field compaction
 
Wwe Biological unit processes
 Wwe Biological unit processes  Wwe Biological unit processes
Wwe Biological unit processes
 
Rbte Drainage system in tunnel
 Rbte Drainage system in tunnel Rbte Drainage system in tunnel
Rbte Drainage system in tunnel
 
Navier-Stokes Equation of Motion
 Navier-Stokes Equation of Motion  Navier-Stokes Equation of Motion
Navier-Stokes Equation of Motion
 
Types of isolated footing and design
Types of isolated footing and design Types of isolated footing and design
Types of isolated footing and design
 
Btp Town Planning in Ancient India
Btp Town Planning in Ancient IndiaBtp Town Planning in Ancient India
Btp Town Planning in Ancient India
 
Thin cylinders 1
Thin cylinders 1Thin cylinders 1
Thin cylinders 1
 
Hydration of cement
Hydration of cementHydration of cement
Hydration of cement
 
Surveying ppt : COMPONENETS OF TRANSIT THEODOLITE
Surveying ppt : COMPONENETS OF TRANSIT  THEODOLITESurveying ppt : COMPONENETS OF TRANSIT  THEODOLITE
Surveying ppt : COMPONENETS OF TRANSIT THEODOLITE
 
AEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactoriesAEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactories
 
Bc.ppt METHOD OF IMPROVING SOIL BEARING CAPPACITY
Bc.ppt METHOD OF IMPROVING SOIL BEARING CAPPACITYBc.ppt METHOD OF IMPROVING SOIL BEARING CAPPACITY
Bc.ppt METHOD OF IMPROVING SOIL BEARING CAPPACITY
 
aem : Fourier series of Even and Odd Function
aem :  Fourier series of Even and Odd Functionaem :  Fourier series of Even and Odd Function
aem : Fourier series of Even and Odd Function
 
EEE Introduction to Capacitors and Charging and Discharging of capacitors.
EEE  Introduction to Capacitors and Charging and Discharging of capacitors.EEE  Introduction to Capacitors and Charging and Discharging of capacitors.
EEE Introduction to Capacitors and Charging and Discharging of capacitors.
 
Structural analysis 2
Structural analysis 2Structural analysis 2
Structural analysis 2
 
Soil MEchanics
Soil MEchanicsSoil MEchanics
Soil MEchanics
 

Kürzlich hochgeladen

💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 

Kürzlich hochgeladen (20)

Climate Change
Climate ChangeClimate Change
Climate Change
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
 
RATING SYSTEMS- IGBC, GRIHA, LEED--.pptx
RATING  SYSTEMS- IGBC, GRIHA, LEED--.pptxRATING  SYSTEMS- IGBC, GRIHA, LEED--.pptx
RATING SYSTEMS- IGBC, GRIHA, LEED--.pptx
 
💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Mathura Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
 
Green Marketing
Green MarketingGreen Marketing
Green Marketing
 
Call Girls Budhwar Peth Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Budhwar Peth Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Budhwar Peth Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Budhwar Peth Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Model Call Girls Viman Nagar ( Pune ) Call ON 8005736733 Starting From 5K...
VIP Model Call Girls Viman Nagar ( Pune ) Call ON 8005736733 Starting From 5K...VIP Model Call Girls Viman Nagar ( Pune ) Call ON 8005736733 Starting From 5K...
VIP Model Call Girls Viman Nagar ( Pune ) Call ON 8005736733 Starting From 5K...
 
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Proposed Amendments to Chapter 15, Article X: Wetland Conservation Areas
Proposed Amendments to Chapter 15, Article X: Wetland Conservation AreasProposed Amendments to Chapter 15, Article X: Wetland Conservation Areas
Proposed Amendments to Chapter 15, Article X: Wetland Conservation Areas
 
Introduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptxIntroduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptx
 
DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024
 
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
 
VIP Model Call Girls Uruli Kanchan ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Uruli Kanchan ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Uruli Kanchan ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Uruli Kanchan ( Pune ) Call ON 8005736733 Starting From ...
 
VIP Model Call Girls Charholi Budruk ( Pune ) Call ON 8005736733 Starting Fro...
VIP Model Call Girls Charholi Budruk ( Pune ) Call ON 8005736733 Starting Fro...VIP Model Call Girls Charholi Budruk ( Pune ) Call ON 8005736733 Starting Fro...
VIP Model Call Girls Charholi Budruk ( Pune ) Call ON 8005736733 Starting Fro...
 
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
celebrity 💋 Kanpur Escorts Just Dail 8250092165 service available anytime 24 ...
celebrity 💋 Kanpur Escorts Just Dail 8250092165 service available anytime 24 ...celebrity 💋 Kanpur Escorts Just Dail 8250092165 service available anytime 24 ...
celebrity 💋 Kanpur Escorts Just Dail 8250092165 service available anytime 24 ...
 
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxHertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
 
Call Girls Ramtek Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Ramtek Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Ramtek Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Ramtek Call Me 7737669865 Budget Friendly No Advance Booking
 

Cpu.ppt INTRODUCTION TO “C”

  • 1. ACTIVE LEARNING ASSIGNMENT TOPIC: INTRODUCTION TO “C”
  • 2. History Of C • Created By Dennis Ritchie At Bell Labs In 1972 • Originally Created To Design And Support The Unix Operating System. • C Compilers Are Available For Virtually Every Platform • In 1983 The American National Standards Institute (ANSI) Standardized C to be called ANSI Standard C. • ANSI C Programs That You Write Should Work With Any ANSI C Compiler.
  • 3. Features of C • Efficient & Fast. • Variety Of Data Types & Powerful Operators. • Highly Portable. • Well Suited For Structured Programming. • Its Ability To Extend Itself. • A Collection Of Functions.
  • 4. Use Of C • Operating Systems • Language Compilers • Assemblers • Text Editors • Print Spoolers • Network Drivers • Modern Programs
  • 5. Data Types • Different Types Of Variables Allow The Storing Different Types Of Data, Hence The Name “Data Types” • E.g. If You Had To Store The Numbers 10 And 10.0, C Provides Two Different Data Types.
  • 6. Basics Of Variables char: A Single Byte, Holds One Character e.g. The Letter ‘a’, Although They are Stored As Integer Values Standardized As ASCII Numbers int: An Integer Of Fixed Length, Usually 4 bytes / 32 bits. E.g. The Number 10 Can Be Stored In A Variable Of Type Int. float: Single-Precision Floating Point. e.g. The Number 10.67 double: Same As A float But With Double Precision
  • 7. Basic Things For C • Link Section- It Contains Header File. Mainly Two Header Files:- • 1 > stdio.h:-Standard Input Output Header File(For printf, scanf, etc.) • 2> conio.h:-Console Input Output Header File(For clrscr(), getch(), etc.) • Main Function:- It Contains Main Logic Of The Program.
  • 9.
  • 10. C Tokens • C Tokens Are The Basic Buildings Blocks In C Language Which Are Constructed Together To Write A C Program. • Each And Every Smallest Individual Units In A C Program Are Known As C Tokens.
  • 11. C Tokens Example Program: • int main() { int x, y, total; x = 10, y = 20; total = x + y; Printf (“Total = %d n”, total); } C Tokens Are Of Six Types • Keywords (eg: int) • Identifiers (eg: main, total) • Constants (eg: 10, 20) • Strings (eg: “total”,) • Special symbols (eg: (), {}) • Operators (eg: +, /,-,*)