SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Data Types
Classification Of Information
What is Data Type ?
For humans in their daily life it is easy to distinguish among different types of data they
come across eg. if number is a percentage or a time, or a weight, or an amount of
money. We do this through special symbols like %, :,kg, and $ that indicate the type of
information we are referring to Similarly, a computer program needed special internal
codes to keep track of the different types of data it is interacting with .
In computer science and computer programming, a data type or simply type is a classification identifying one of
various types of data, such as real, integer or Boolean, that determines the possible values for that type, the
operations that can be done on values of that type, the meaning of the data, and the way values of that type can be
stored “Wikipedia”
What purpose they Solve ?
In real Life we come across multiple type of statistical values like fractional data,count
data,positive or negative data,categorical data,lists,words,alphabets,matrices.
In a software code we define interfaces between different parts of a software code to be
connected in a consistent way to interact with such informations or data and to interchange
among themselves.
The consistency gets evaluated(Type Enforcement) strategically either at compile time or
at runtime of the code. With a consistent(the possible values for that type, the operations that can be
done on values of that type) data types structs makes life alot easier for a software developer to
stay aligned with the Type safety.
Type Enforcement
Type Enforcement is closely related to the Access control of the operating Systems which
can be defined as the selective restriction in turn it allows the code to access the memory
locations it is authorized to access.
For example :
an object can not read values from other objects private members.
Type Safety
Well-typed programs cannot "go wrong” Robin Miller
The behaviors classified as type errors by a given programming language are usually those that result from attempts
to perform operations on values that are not of the appropriate data type. “Wikipedia”
Type safety a restriction on the ability to copy arbitrary bit patterns from one memory
location to another . That may cause buffer overflow and dangling pointers .
Think if we could allow an arbitrary integer to be used as
a pointer
catastrophic
failure
Classification Of Data Types
Primitive Data Types Composite Data Types
Data Types
Primitive Data Types
Characters,Integers, Floating point Numbers,Fixed Point Numbers ,Booleans, Characters,
Strings, References, Tuples,List,Complex Numbers,Functions,Rational Numbers.
A basic type is a data type provided by a programming language as a basic building block. Most languages allow
more complicated composite types to be recursively constructed starting from basic types.
A built-in type is a data type for which the programming language provides built-in support.
“Wikipedia”
Composite Data Types
An array stores a number of elements of the same type in a specific order.
Record ,tuple or struct is a value that contains other values, typically in fixed number
and sequence and typically indexed by names.
Union. A union type definition will specify which of a number of permitted primitive
types may be stored in its instances, e.g. "float or long integer". Contrast with a
record, which could be defined to contain a float and an integer; whereas, in a union,
there is only one type allowed at a time.
A tagged union (also called a variant, variant record, discriminated union, or disjoint
union) contains an additional field indicating its current type
A set is an abstract data structure that can store certain values, without any particular
order, and no repeated values.
An object contains a number of data fields, like a record, and also a number of
subroutines for accessing or modifying them, called methods.
“Wikipedia”

Weitere ähnliche Inhalte

Was ist angesagt?

Data types
Data typesData types
Data typesSyed Umair
 
Variables in C++, data types in c++
Variables in C++, data types in c++Variables in C++, data types in c++
Variables in C++, data types in c++Neeru Mittal
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programmingHarshita Yadav
 
Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data typesManisha Keim
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-cteach4uin
 
Data types in C
Data types in CData types in C
Data types in CSatveer Mann
 
Data types in C
Data types in CData types in C
Data types in CTarun Sharma
 
Java: Primitive Data Types
Java: Primitive Data TypesJava: Primitive Data Types
Java: Primitive Data TypesTareq Hasan
 
Java Data Types
Java Data TypesJava Data Types
Java Data TypesSpotle.ai
 
User defined data type
User defined data typeUser defined data type
User defined data typeAmit Kapoor
 
Data types in C language
Data types in C languageData types in C language
Data types in C languagekashyap399
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C ProgrammingKamal Acharya
 
Variables and data types in C++
Variables and data types in C++Variables and data types in C++
Variables and data types in C++Ameer Khan
 
Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2MOHIT TOMAR
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in CSahithi Naraparaju
 
Primitive data types
Primitive data typesPrimitive data types
Primitive data typesStudent
 

Was ist angesagt? (20)

Data types
Data typesData types
Data types
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Variables in C++, data types in c++
Variables in C++, data types in c++Variables in C++, data types in c++
Variables in C++, data types in c++
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data types
 
Lect 9(pointers) Zaheer Abbas
Lect 9(pointers) Zaheer AbbasLect 9(pointers) Zaheer Abbas
Lect 9(pointers) Zaheer Abbas
 
Data types
Data typesData types
Data types
 
Datatypes in c
Datatypes in cDatatypes in c
Datatypes in c
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
 
Data types in C
Data types in CData types in C
Data types in C
 
Data types in C
Data types in CData types in C
Data types in C
 
Java: Primitive Data Types
Java: Primitive Data TypesJava: Primitive Data Types
Java: Primitive Data Types
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
User defined data type
User defined data typeUser defined data type
User defined data type
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
Variables and data types in C++
Variables and data types in C++Variables and data types in C++
Variables and data types in C++
 
Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
 
Primitive data types
Primitive data typesPrimitive data types
Primitive data types
 

Ă„hnlich wie Data Types

Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and AlogarithimsVictor Palmar
 
New open document text (2)
New open document text (2)New open document text (2)
New open document text (2)Samron Samantha
 
Basics of data structure
Basics of data structureBasics of data structure
Basics of data structureRajendran
 
Database Concepts
Database ConceptsDatabase Concepts
Database ConceptsSaradha Shyam
 
Primitive data types
Primitive data typesPrimitive data types
Primitive data typesbad_zurbic
 
Synthesys Technical Overview
Synthesys Technical OverviewSynthesys Technical Overview
Synthesys Technical OverviewDigital Reasoning
 
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II
Unit i  data structure FYCS MUMBAI UNIVERSITY SEM II Unit i  data structure FYCS MUMBAI UNIVERSITY SEM II
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II ajay pashankar
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database conceptsTemesgenthanks
 
Data
DataData
Dataaqib1122
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxkaransethi63
 
Programming in Civil Engineering_UNIT 2_NOTES
Programming in Civil Engineering_UNIT 2_NOTESProgramming in Civil Engineering_UNIT 2_NOTES
Programming in Civil Engineering_UNIT 2_NOTESRushikesh Kolhe
 
Graph-based Approaches for Organization Entity Resolution in MapReduce
Graph-based Approaches for Organization Entity Resolution in MapReduceGraph-based Approaches for Organization Entity Resolution in MapReduce
Graph-based Approaches for Organization Entity Resolution in MapReduceDeepak K
 
Angels_in_our_Midst
Angels_in_our_MidstAngels_in_our_Midst
Angels_in_our_MidstMike Alvarado
 
Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)jimmy majumder
 
Data Type is a basic classification which identifies.docx
Data Type is a basic classification which identifies.docxData Type is a basic classification which identifies.docx
Data Type is a basic classification which identifies.docxtheodorelove43763
 

Ă„hnlich wie Data Types (20)

Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
 
New open document text (2)
New open document text (2)New open document text (2)
New open document text (2)
 
Data types
Data typesData types
Data types
 
Basics of data structure
Basics of data structureBasics of data structure
Basics of data structure
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
3rd june
3rd june3rd june
3rd june
 
Types in .net
Types in .netTypes in .net
Types in .net
 
Primitive data types
Primitive data typesPrimitive data types
Primitive data types
 
Datamining
DataminingDatamining
Datamining
 
Synthesys Technical Overview
Synthesys Technical OverviewSynthesys Technical Overview
Synthesys Technical Overview
 
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II
Unit i  data structure FYCS MUMBAI UNIVERSITY SEM II Unit i  data structure FYCS MUMBAI UNIVERSITY SEM II
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Data
DataData
Data
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptx
 
Programming in Civil Engineering_UNIT 2_NOTES
Programming in Civil Engineering_UNIT 2_NOTESProgramming in Civil Engineering_UNIT 2_NOTES
Programming in Civil Engineering_UNIT 2_NOTES
 
Graph-based Approaches for Organization Entity Resolution in MapReduce
Graph-based Approaches for Organization Entity Resolution in MapReduceGraph-based Approaches for Organization Entity Resolution in MapReduce
Graph-based Approaches for Organization Entity Resolution in MapReduce
 
7.type system
7.type system7.type system
7.type system
 
Angels_in_our_Midst
Angels_in_our_MidstAngels_in_our_Midst
Angels_in_our_Midst
 
Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)Fundamental of C Programming (Data Types)
Fundamental of C Programming (Data Types)
 
Data Type is a basic classification which identifies.docx
Data Type is a basic classification which identifies.docxData Type is a basic classification which identifies.docx
Data Type is a basic classification which identifies.docx
 

KĂĽrzlich hochgeladen

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 

KĂĽrzlich hochgeladen (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 

Data Types

  • 2. What is Data Type ? For humans in their daily life it is easy to distinguish among different types of data they come across eg. if number is a percentage or a time, or a weight, or an amount of money. We do this through special symbols like %, :,kg, and $ that indicate the type of information we are referring to Similarly, a computer program needed special internal codes to keep track of the different types of data it is interacting with . In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real, integer or Boolean, that determines the possible values for that type, the operations that can be done on values of that type, the meaning of the data, and the way values of that type can be stored “Wikipedia”
  • 3. What purpose they Solve ? In real Life we come across multiple type of statistical values like fractional data,count data,positive or negative data,categorical data,lists,words,alphabets,matrices. In a software code we define interfaces between different parts of a software code to be connected in a consistent way to interact with such informations or data and to interchange among themselves. The consistency gets evaluated(Type Enforcement) strategically either at compile time or at runtime of the code. With a consistent(the possible values for that type, the operations that can be done on values of that type) data types structs makes life alot easier for a software developer to stay aligned with the Type safety.
  • 4. Type Enforcement Type Enforcement is closely related to the Access control of the operating Systems which can be defined as the selective restriction in turn it allows the code to access the memory locations it is authorized to access. For example : an object can not read values from other objects private members.
  • 5. Type Safety Well-typed programs cannot "go wrong” Robin Miller The behaviors classified as type errors by a given programming language are usually those that result from attempts to perform operations on values that are not of the appropriate data type. “Wikipedia” Type safety a restriction on the ability to copy arbitrary bit patterns from one memory location to another . That may cause buffer overflow and dangling pointers . Think if we could allow an arbitrary integer to be used as a pointer catastrophic failure
  • 6. Classification Of Data Types Primitive Data Types Composite Data Types Data Types
  • 7. Primitive Data Types Characters,Integers, Floating point Numbers,Fixed Point Numbers ,Booleans, Characters, Strings, References, Tuples,List,Complex Numbers,Functions,Rational Numbers. A basic type is a data type provided by a programming language as a basic building block. Most languages allow more complicated composite types to be recursively constructed starting from basic types. A built-in type is a data type for which the programming language provides built-in support. “Wikipedia”
  • 8. Composite Data Types An array stores a number of elements of the same type in a specific order. Record ,tuple or struct is a value that contains other values, typically in fixed number and sequence and typically indexed by names. Union. A union type definition will specify which of a number of permitted primitive types may be stored in its instances, e.g. "float or long integer". Contrast with a record, which could be defined to contain a float and an integer; whereas, in a union, there is only one type allowed at a time.
  • 9. A tagged union (also called a variant, variant record, discriminated union, or disjoint union) contains an additional field indicating its current type A set is an abstract data structure that can store certain values, without any particular order, and no repeated values. An object contains a number of data fields, like a record, and also a number of subroutines for accessing or modifying them, called methods. “Wikipedia”