SlideShare a Scribd company logo
INTRODUCTION OF C
LANGUAGE
By
Kirti sachan
ALL ABOUT C LANGUAGE :
 C is developed by Dennis Richie
 C is structured programming language
 Comments in c provide easy readability
 C is powerful language
 C is high level language with low level features
RUNNING A C PROGRAM
 Type a program
 Save it
 Compile it –it will be converted into exe
(executable)
 Run the program
 (the compiler checks for errors ,if any before
execution )
WHAT ARE C TOKENS AND TYPE
OF C TOKENS IN C LANGUAGE
The smallest individual
units in c program . They
are source –program text
which the compiler
doesn’t furthur
breakdowns.
There are 6 different types of token in
c
 Keywords (float,int,while etc)
 Identifiers(main ,amount etc)
 Constants ( 17.5 , -23.4 etc)
 Strings ( “hello” , “lets go” )
 Special symbols ( {},[],& )
 Operators ( +,-,*,/ )
KEYWORDS
 They have special
meaning to compiler
 They are written only in
lower case
 They are of great
importance in writing a
c program
 There are only 32
keywords available in c
CONSTANTS
 Constants are fixed
values which do not
change during program
execution
MORE ABOUT CONSTANTS
 Integer constants
 refers to series of digit such as decimal integer ,octal integer ,
hexadecimal integer
 Eg : 121 ,ox2 etc
 Real constants
 The floating point constants such as -0.05 , 9.34
 Single character constants
 It consists of single character enclosed within pair of single quotes (‘ ‘). Eg : ‘ &’ , ‘a’ etc
 String constants
 A string constant
 It is a sequence of characters enclosed within double quotes (“ “ )
 Eg: “ hello”

VARIABLES
 It is a data name used to store any value
 Are used to store values which can be changed
during program execution
 Variable names in c
 May only consist of letters , digits and underscores
 First 31 characters are significant
 May not begin with a number
 May not be a keyword
 Should start with letter or underscore(_)
 No other special characters are allowed except
space
DATA TYPES
1. INTEGER
 It is a number without a fraction part
 Represents a signed integer of4 or 8 bytes or32 0r
64 bit
 Designed to hold whole numbers
 Can be signed or unsigned
 Eg: 12 -5 7
o Available in different sizes
o Int , short Int and long int
o Size : short int < int < long int
CHARACTER
 Represents a single byte of storage i.e 8 bits of
storage
 Used to hold characters like “d” or “a” etc
 Numerical value is associated with character via a
character set
 Numeric value of a character in memory
 Code: memory:
 Char : “place” place
 67
3. FLOATING POINT
 It is a type of number a fractional part
 Designed to hold real numbers
 Eg 12.5 -3.4
 All numbers are signed
 Available in different sizes float<double < long
double
4. VOID
It has no values and no
operations
THANK YOU
Hope it was helpful

More Related Content

What's hot

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Programming in c
Programming in cProgramming in c
Programming in c
vineet4523
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
Rai University
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
Mohit Saini
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
Rai University
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
Rai University
 
Unit 1 question and answer
Unit 1 question and answerUnit 1 question and answer
Unit 1 question and answer
Vasuki Ramasamy
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
Rai University
 
Javascript by Yahoo
Javascript by YahooJavascript by Yahoo
Javascript by Yahoo
birbal
 
Python Interview questions 2020
Python Interview questions 2020Python Interview questions 2020
Python Interview questions 2020
VigneshVijay21
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
Rumman Ansari
 
Basics of c
Basics of cBasics of c
Basics of c
vinothini1996
 
Cp presentation
Cp presentationCp presentation
Cp presentation
MeetaPrajapati
 
Lec9
Lec9Lec9
Lec9
kapil078
 
Uniti classnotes
Uniti classnotesUniti classnotes
Uniti classnotes
Sowri Rajan
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Hassan293
 
basics of c++
basics of c++basics of c++
basics of c++
gourav kottawar
 
Csharp4 basics
Csharp4 basicsCsharp4 basics
Csharp4 basics
Abed Bukhari
 
C++ Chapter 1
C++ Chapter 1C++ Chapter 1
C++ Chapter 1
SHRIRANG PINJARKAR
 

What's hot (20)

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
 
Unit 1 question and answer
Unit 1 question and answerUnit 1 question and answer
Unit 1 question and answer
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
 
Javascript by Yahoo
Javascript by YahooJavascript by Yahoo
Javascript by Yahoo
 
Python Interview questions 2020
Python Interview questions 2020Python Interview questions 2020
Python Interview questions 2020
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
 
Basics of c
Basics of cBasics of c
Basics of c
 
Cp presentation
Cp presentationCp presentation
Cp presentation
 
Lec9
Lec9Lec9
Lec9
 
Uniti classnotes
Uniti classnotesUniti classnotes
Uniti classnotes
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
basics of c++
basics of c++basics of c++
basics of c++
 
Csharp4 basics
Csharp4 basicsCsharp4 basics
Csharp4 basics
 
C++ Chapter 1
C++ Chapter 1C++ Chapter 1
C++ Chapter 1
 

Viewers also liked

Introduction to c language by nitesh
Introduction to c language by niteshIntroduction to c language by nitesh
Introduction to c language by nitesh
niteshcongreja321
 
C programming language
C programming languageC programming language
C programming language
Abin Rimal
 
Introduction to C language
Introduction to C languageIntroduction to C language
Introduction to C language
Ketan Chaoji
 
Diesel Construction certificate
Diesel Construction certificateDiesel Construction certificate
Diesel Construction certificateNourtayba Sharief
 
Top 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
Top 5 Reasons to Consider Tradewind’s Master Territory Developer OpportunityTop 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
Top 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
Tradewind Settlements
 
PENGAWETAN MINYAK
PENGAWETAN MINYAKPENGAWETAN MINYAK
PENGAWETAN MINYAK
KHOIRULNURASIAHH
 
Life Settlement Association
Life Settlement AssociationLife Settlement Association
Life Settlement AssociationNorman Hood
 
Paws- Biostress prac- all data
Paws- Biostress prac- all dataPaws- Biostress prac- all data
Paws- Biostress prac- all data
Oliver Field
 
Пути решения конфликта на Востоке Украины
Пути решения конфликта на Востоке УкраиныПути решения конфликта на Востоке Украины
Пути решения конфликта на Востоке Украины
uisgda
 
TLRI final report
TLRI final reportTLRI final report
TLRI final report
Marcia Johnson
 
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...Nina_obstetrics
 
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBI
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBIGüvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBI
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBIÖzlem ÖZKILIÇ
 
Intro to cprogramming
Intro to cprogrammingIntro to cprogramming
Intro to cprogramming
skashwin98
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
sanjay joshi
 
C Language
C LanguageC Language
C Language
Aakash Singh
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Manoj Tyagi
 
Brief introduction to the c programming language
Brief introduction to the c programming languageBrief introduction to the c programming language
Brief introduction to the c programming language
Kumar Gaurav
 
1 introduction to c programming language
1 introduction to c programming language1 introduction to c programming language
1 introduction to c programming language
Narendra Soni
 
C language
C languageC language
C language
Mohamed Bedair
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
Kamal Acharya
 

Viewers also liked (20)

Introduction to c language by nitesh
Introduction to c language by niteshIntroduction to c language by nitesh
Introduction to c language by nitesh
 
C programming language
C programming languageC programming language
C programming language
 
Introduction to C language
Introduction to C languageIntroduction to C language
Introduction to C language
 
Diesel Construction certificate
Diesel Construction certificateDiesel Construction certificate
Diesel Construction certificate
 
Top 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
Top 5 Reasons to Consider Tradewind’s Master Territory Developer OpportunityTop 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
Top 5 Reasons to Consider Tradewind’s Master Territory Developer Opportunity
 
PENGAWETAN MINYAK
PENGAWETAN MINYAKPENGAWETAN MINYAK
PENGAWETAN MINYAK
 
Life Settlement Association
Life Settlement AssociationLife Settlement Association
Life Settlement Association
 
Paws- Biostress prac- all data
Paws- Biostress prac- all dataPaws- Biostress prac- all data
Paws- Biostress prac- all data
 
Пути решения конфликта на Востоке Украины
Пути решения конфликта на Востоке УкраиныПути решения конфликта на Востоке Украины
Пути решения конфликта на Востоке Украины
 
TLRI final report
TLRI final reportTLRI final report
TLRI final report
 
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...
Масивні акушерські кровотечі. Класифікація. Прогнозування та профілактика. Ге...
 
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBI
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBIGüvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBI
Güvenilirlik Merkezli Bakım RCM - Risk Temelli Kontrol RBI
 
Intro to cprogramming
Intro to cprogrammingIntro to cprogramming
Intro to cprogramming
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
 
C Language
C LanguageC Language
C Language
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Brief introduction to the c programming language
Brief introduction to the c programming languageBrief introduction to the c programming language
Brief introduction to the c programming language
 
1 introduction to c programming language
1 introduction to c programming language1 introduction to c programming language
1 introduction to c programming language
 
C language
C languageC language
C language
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 

Similar to Introduction to c programming

C the basic concepts
C the basic conceptsC the basic concepts
C the basic concepts
Abhinav Vatsa
 
cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
zeenatparveen24
 
C PROGRAMMING LANGUAGE.pptx
 C PROGRAMMING LANGUAGE.pptx C PROGRAMMING LANGUAGE.pptx
C PROGRAMMING LANGUAGE.pptx
AnshSrivastava48
 
Chap 1 and 2
Chap 1 and 2Chap 1 and 2
Msc prev completed
Msc prev completedMsc prev completed
Msc prev completed
mshoaib15
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updated
mshoaib15
 
C Slides
C SlidesC Slides
C Tokens
C TokensC Tokens
C Tokens
Ripon Hossain
 
C programming Training in Ambala ! Batra Computer Centre
C programming Training in Ambala ! Batra Computer CentreC programming Training in Ambala ! Batra Computer Centre
C programming Training in Ambala ! Batra Computer Centre
jatin batra
 
Cnotes
CnotesCnotes
All C ppt.ppt
All C ppt.pptAll C ppt.ppt
All C ppt.ppt
JeelBhanderi4
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
atulchaudhary821
 
C++
C++C++
C++
k v
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
SowmyaJyothi3
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
Rai University
 
C
CC
history of c.ppt
history of c.ppthistory of c.ppt
history of c.ppt
arpanabharani
 
Aniket tore
Aniket toreAniket tore
Aniket tore
anikettore1
 
C tokens
C tokensC tokens
C tokens
Manu1325
 

Similar to Introduction to c programming (20)

C the basic concepts
C the basic conceptsC the basic concepts
C the basic concepts
 
cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
 
C PROGRAMMING LANGUAGE.pptx
 C PROGRAMMING LANGUAGE.pptx C PROGRAMMING LANGUAGE.pptx
C PROGRAMMING LANGUAGE.pptx
 
Chap 1 and 2
Chap 1 and 2Chap 1 and 2
Chap 1 and 2
 
Msc prev completed
Msc prev completedMsc prev completed
Msc prev completed
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updated
 
C Slides
C SlidesC Slides
C Slides
 
C Tokens
C TokensC Tokens
C Tokens
 
C programming Training in Ambala ! Batra Computer Centre
C programming Training in Ambala ! Batra Computer CentreC programming Training in Ambala ! Batra Computer Centre
C programming Training in Ambala ! Batra Computer Centre
 
Cnotes
CnotesCnotes
Cnotes
 
All C ppt.ppt
All C ppt.pptAll C ppt.ppt
All C ppt.ppt
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
 
C++
C++C++
C++
 
C language ppt
C language pptC language ppt
C language ppt
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
C
CC
C
 
history of c.ppt
history of c.ppthistory of c.ppt
history of c.ppt
 
Aniket tore
Aniket toreAniket tore
Aniket tore
 
C tokens
C tokensC tokens
C tokens
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 

Introduction to c programming

  • 2. ALL ABOUT C LANGUAGE :  C is developed by Dennis Richie  C is structured programming language  Comments in c provide easy readability  C is powerful language  C is high level language with low level features
  • 3. RUNNING A C PROGRAM  Type a program  Save it  Compile it –it will be converted into exe (executable)  Run the program  (the compiler checks for errors ,if any before execution )
  • 4. WHAT ARE C TOKENS AND TYPE OF C TOKENS IN C LANGUAGE The smallest individual units in c program . They are source –program text which the compiler doesn’t furthur breakdowns.
  • 5. There are 6 different types of token in c  Keywords (float,int,while etc)  Identifiers(main ,amount etc)  Constants ( 17.5 , -23.4 etc)  Strings ( “hello” , “lets go” )  Special symbols ( {},[],& )  Operators ( +,-,*,/ )
  • 6. KEYWORDS  They have special meaning to compiler  They are written only in lower case  They are of great importance in writing a c program  There are only 32 keywords available in c
  • 7. CONSTANTS  Constants are fixed values which do not change during program execution
  • 8. MORE ABOUT CONSTANTS  Integer constants  refers to series of digit such as decimal integer ,octal integer , hexadecimal integer  Eg : 121 ,ox2 etc  Real constants  The floating point constants such as -0.05 , 9.34  Single character constants  It consists of single character enclosed within pair of single quotes (‘ ‘). Eg : ‘ &’ , ‘a’ etc  String constants  A string constant  It is a sequence of characters enclosed within double quotes (“ “ )  Eg: “ hello” 
  • 9. VARIABLES  It is a data name used to store any value  Are used to store values which can be changed during program execution  Variable names in c  May only consist of letters , digits and underscores  First 31 characters are significant  May not begin with a number  May not be a keyword  Should start with letter or underscore(_)  No other special characters are allowed except space
  • 11. 1. INTEGER  It is a number without a fraction part  Represents a signed integer of4 or 8 bytes or32 0r 64 bit  Designed to hold whole numbers  Can be signed or unsigned  Eg: 12 -5 7 o Available in different sizes o Int , short Int and long int o Size : short int < int < long int
  • 12. CHARACTER  Represents a single byte of storage i.e 8 bits of storage  Used to hold characters like “d” or “a” etc  Numerical value is associated with character via a character set  Numeric value of a character in memory  Code: memory:  Char : “place” place  67
  • 13. 3. FLOATING POINT  It is a type of number a fractional part  Designed to hold real numbers  Eg 12.5 -3.4  All numbers are signed  Available in different sizes float<double < long double
  • 14. 4. VOID It has no values and no operations
  • 15. THANK YOU Hope it was helpful