SlideShare a Scribd company logo
Key concepts:
 Code Editor-Meant for editing the
actual code.
 Translator- Meant for translating the
high level language to low level language
& viceversa. Two types of translators are
compilers and Interpreters.
Two types of Computer languages:
* High level language-Made up of
common English’
example: C,C++,Java etc.,
*Low level Language: Also known as
machine
language. Made up binary
numbers.ie., 0’s and 1’s
Comment line:
* Starts with /* and ends with */.
* The compiler ignores this line as
it is just meant for the user or
others to understand what is being
done in a particular portion of the
program.
* Does not get diplayed on the
output screen.
Printf()-Output function.It
is meant for displaying the
content on the output
page.
Scanf( )-Input function.It is
meant for accepting the
user’s input during the
program execution.
Constants
As the name implies, the value stays fixed.
It doesn’t keep changing during the time of
execution unless and until the user makes a
change.
The two types of constants are Numeric
constants and character constants.
Variable
As the name itself implies , the value of the
variable keeps changing during the time of
program execution.
How to declare a variable?
The syntax to declare a variable is,
datatype variablename;
Example:
Int Num;
Here int refers to interger datatype and Num
refers to the name of the variable.
Datatypes
The data type refers to the type of
the data used in the program. There
are four basic types. They are int,
float, char and double.

More Related Content

What's hot

Language Translator ( Compiler)
Language Translator ( Compiler)Language Translator ( Compiler)
Language Translator ( Compiler)
Nazmul Hyder
 
[ITP - Lecture 03] Introduction to C/C++
[ITP - Lecture 03] Introduction to C/C++[ITP - Lecture 03] Introduction to C/C++
[ITP - Lecture 03] Introduction to C/C++
Muhammad Hammad Waseem
 
Lec 1 intro
Lec 1 introLec 1 intro
Lec 1 intro
lankasenanayake
 
Programming Methodology
Programming MethodologyProgramming Methodology
Programming Methodology
archikabhatia
 
C lecture notes new
C lecture notes newC lecture notes new
C lecture notes new
Kuntal Bhowmick
 
Language translator
Language translatorLanguage translator
Language translator
asmakh89
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
Ducat
 
Input output in c
Input output in cInput output in c
Input output in c
Ducat
 
Introduction to compiler interpreter
Introduction to compiler interpreterIntroduction to compiler interpreter
Introduction to compiler interpreter
poojapainter
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chaptersIbrahim Elewah
 
Compilation v. interpretation
Compilation v. interpretationCompilation v. interpretation
Compilation v. interpretation
Alexander Bollbach
 
What is Compiler?
What is Compiler?What is Compiler?
What is Compiler?
Huawei Technologies
 
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
GautamGupta136
 
Compiler interpreter and_bootstrapping
Compiler interpreter and_bootstrappingCompiler interpreter and_bootstrapping
Compiler interpreter and_bootstrapping
sandeep manzhi
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
Inamul Hossain Imran
 

What's hot (20)

Language Translator ( Compiler)
Language Translator ( Compiler)Language Translator ( Compiler)
Language Translator ( Compiler)
 
LANGUAGE TRANSLATOR
LANGUAGE TRANSLATORLANGUAGE TRANSLATOR
LANGUAGE TRANSLATOR
 
COMPILER Meenu khan
COMPILER Meenu khanCOMPILER Meenu khan
COMPILER Meenu khan
 
COMPILER
COMPILERCOMPILER
COMPILER
 
[ITP - Lecture 03] Introduction to C/C++
[ITP - Lecture 03] Introduction to C/C++[ITP - Lecture 03] Introduction to C/C++
[ITP - Lecture 03] Introduction to C/C++
 
Lec 1 intro
Lec 1 introLec 1 intro
Lec 1 intro
 
Programming Methodology
Programming MethodologyProgramming Methodology
Programming Methodology
 
C lecture notes new
C lecture notes newC lecture notes new
C lecture notes new
 
Language translator
Language translatorLanguage translator
Language translator
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
 
How a Compiler Works ?
How a Compiler Works ?How a Compiler Works ?
How a Compiler Works ?
 
Input output in c
Input output in cInput output in c
Input output in c
 
Introduction to compiler interpreter
Introduction to compiler interpreterIntroduction to compiler interpreter
Introduction to compiler interpreter
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
 
Compilation v. interpretation
Compilation v. interpretationCompilation v. interpretation
Compilation v. interpretation
 
What is Compiler?
What is Compiler?What is Compiler?
What is Compiler?
 
Programming Methodology
Programming MethodologyProgramming Methodology
Programming Methodology
 
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 interpreter and_bootstrapping
Compiler interpreter and_bootstrappingCompiler interpreter and_bootstrapping
Compiler interpreter and_bootstrapping
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 

Similar to Variables and datatypes

Unit 1
Unit 1Unit 1
Unit 1
TPLatchoumi
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
ShivanadhuniBhanuPra
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
Subramanyambharathis
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7
Shipra Swati
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
Ppt 1
Ppt 1Ppt 1
C programming
C programmingC programming
C programming
Jigarthacker
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
Noel Malle
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
Md Hossen
 
Introduction to C Programming Language.pptx
Introduction to C Programming Language.pptxIntroduction to C Programming Language.pptx
Introduction to C Programming Language.pptx
AnithaTAssistantProf
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9nahomyitbarek
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
DharmaKumariBhandari
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
Dheeraj Patidar
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
Revathiparamanathan
 
C Fundamental.docx
C Fundamental.docxC Fundamental.docx
C Fundamental.docx
AbhishekGoutam6
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer program
Abhay Kumar
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
PmarkNorcio
 

Similar to Variables and datatypes (20)

Unit 1
Unit 1Unit 1
Unit 1
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
 
Programming in c
Programming in cProgramming in c
Programming in c
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.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 programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
C programming
C programmingC programming
C programming
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
 
Introduction to C Programming Language.pptx
Introduction to C Programming Language.pptxIntroduction to C Programming Language.pptx
Introduction to C Programming Language.pptx
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
C Fundamental.docx
C Fundamental.docxC Fundamental.docx
C Fundamental.docx
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer program
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 

More from aishvaryatamilarasoo

Kingsoft presentation provided by kingsoft office
Kingsoft presentation provided by kingsoft officeKingsoft presentation provided by kingsoft office
Kingsoft presentation provided by kingsoft office
aishvaryatamilarasoo
 
The Indian Constitution ppt
The Indian Constitution pptThe Indian Constitution ppt
The Indian Constitution ppt
aishvaryatamilarasoo
 
History from trade to territory pdf
History from trade to territory pdfHistory from trade to territory pdf
History from trade to territory pdf
aishvaryatamilarasoo
 
From trade to territory the company establishes the power ppt
From trade to territory the company establishes the power ppt From trade to territory the company establishes the power ppt
From trade to territory the company establishes the power ppt
aishvaryatamilarasoo
 
Force and friction ppt informative
Force and friction ppt informativeForce and friction ppt informative
Force and friction ppt informative
aishvaryatamilarasoo
 
Solar energy ppt life eazy
Solar energy ppt life eazySolar energy ppt life eazy
Solar energy ppt life eazy
aishvaryatamilarasoo
 
vari vadiva valarchi
 vari vadiva valarchi vari vadiva valarchi
vari vadiva valarchi
aishvaryatamilarasoo
 
eluthu pirappu in tamil
 eluthu pirappu in tamil eluthu pirappu in tamil
eluthu pirappu in tamil
aishvaryatamilarasoo
 
email writing ppt
 email writing ppt email writing ppt
email writing ppt
aishvaryatamilarasoo
 
Resources ppt
Resources pptResources ppt
Resources ppt
aishvaryatamilarasoo
 
Public facilities ppt
Public facilities pptPublic facilities ppt
Public facilities ppt
aishvaryatamilarasoo
 
Marginalisation ppt
Marginalisation pptMarginalisation ppt
Marginalisation ppt
aishvaryatamilarasoo
 
India map reference like atlas
India map reference like atlasIndia map reference like atlas
India map reference like atlas
aishvaryatamilarasoo
 
Collage on public facilties during covid - 19
Collage on public facilties during covid  - 19Collage on public facilties during covid  - 19
Collage on public facilties during covid - 19
aishvaryatamilarasoo
 
Art - objects with shadow drawing
Art - objects with shadow drawingArt - objects with shadow drawing
Art - objects with shadow drawing
aishvaryatamilarasoo
 
Art kingfisher and ostrich
Art kingfisher and ostrich Art kingfisher and ostrich
Art kingfisher and ostrich
aishvaryatamilarasoo
 
ppt on synthetic fibres and plastics
ppt on synthetic fibres and plasticsppt on synthetic fibres and plastics
ppt on synthetic fibres and plastics
aishvaryatamilarasoo
 
Poster on plastic pollution
Poster on plastic pollutionPoster on plastic pollution
Poster on plastic pollution
aishvaryatamilarasoo
 
ppt on combustion and fossil fuels
ppt on combustion and fossil fuelsppt on combustion and fossil fuels
ppt on combustion and fossil fuels
aishvaryatamilarasoo
 
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERSHAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
aishvaryatamilarasoo
 

More from aishvaryatamilarasoo (20)

Kingsoft presentation provided by kingsoft office
Kingsoft presentation provided by kingsoft officeKingsoft presentation provided by kingsoft office
Kingsoft presentation provided by kingsoft office
 
The Indian Constitution ppt
The Indian Constitution pptThe Indian Constitution ppt
The Indian Constitution ppt
 
History from trade to territory pdf
History from trade to territory pdfHistory from trade to territory pdf
History from trade to territory pdf
 
From trade to territory the company establishes the power ppt
From trade to territory the company establishes the power ppt From trade to territory the company establishes the power ppt
From trade to territory the company establishes the power ppt
 
Force and friction ppt informative
Force and friction ppt informativeForce and friction ppt informative
Force and friction ppt informative
 
Solar energy ppt life eazy
Solar energy ppt life eazySolar energy ppt life eazy
Solar energy ppt life eazy
 
vari vadiva valarchi
 vari vadiva valarchi vari vadiva valarchi
vari vadiva valarchi
 
eluthu pirappu in tamil
 eluthu pirappu in tamil eluthu pirappu in tamil
eluthu pirappu in tamil
 
email writing ppt
 email writing ppt email writing ppt
email writing ppt
 
Resources ppt
Resources pptResources ppt
Resources ppt
 
Public facilities ppt
Public facilities pptPublic facilities ppt
Public facilities ppt
 
Marginalisation ppt
Marginalisation pptMarginalisation ppt
Marginalisation ppt
 
India map reference like atlas
India map reference like atlasIndia map reference like atlas
India map reference like atlas
 
Collage on public facilties during covid - 19
Collage on public facilties during covid  - 19Collage on public facilties during covid  - 19
Collage on public facilties during covid - 19
 
Art - objects with shadow drawing
Art - objects with shadow drawingArt - objects with shadow drawing
Art - objects with shadow drawing
 
Art kingfisher and ostrich
Art kingfisher and ostrich Art kingfisher and ostrich
Art kingfisher and ostrich
 
ppt on synthetic fibres and plastics
ppt on synthetic fibres and plasticsppt on synthetic fibres and plastics
ppt on synthetic fibres and plastics
 
Poster on plastic pollution
Poster on plastic pollutionPoster on plastic pollution
Poster on plastic pollution
 
ppt on combustion and fossil fuels
ppt on combustion and fossil fuelsppt on combustion and fossil fuels
ppt on combustion and fossil fuels
 
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERSHAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
HAND OUT ON CLASSES OF FIRES AND FIRE EXTINGUISHERS
 

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
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
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
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...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 

Variables and datatypes

  • 1.
  • 2. Key concepts:  Code Editor-Meant for editing the actual code.  Translator- Meant for translating the high level language to low level language & viceversa. Two types of translators are compilers and Interpreters.
  • 3. Two types of Computer languages: * High level language-Made up of common English’ example: C,C++,Java etc., *Low level Language: Also known as machine language. Made up binary numbers.ie., 0’s and 1’s
  • 4. Comment line: * Starts with /* and ends with */. * The compiler ignores this line as it is just meant for the user or others to understand what is being done in a particular portion of the program. * Does not get diplayed on the output screen.
  • 5. Printf()-Output function.It is meant for displaying the content on the output page. Scanf( )-Input function.It is meant for accepting the user’s input during the program execution.
  • 6. Constants As the name implies, the value stays fixed. It doesn’t keep changing during the time of execution unless and until the user makes a change. The two types of constants are Numeric constants and character constants.
  • 7. Variable As the name itself implies , the value of the variable keeps changing during the time of program execution. How to declare a variable? The syntax to declare a variable is, datatype variablename; Example: Int Num; Here int refers to interger datatype and Num refers to the name of the variable.
  • 8. Datatypes The data type refers to the type of the data used in the program. There are four basic types. They are int, float, char and double.