SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Fundamental of C Programming
(Data Types)
Submitted By:
Engr. Jimmy Majumder
cover
Computer Basic and Programming
1
Block Diagram
 Data types specify how we enter data into our programs and what
type of data we enter. C language has some predefined set of data
types to handle various kinds of data that we can use in our program.
These datatypes have different storage capacities.
2
Primitive Data Types in C
 In computer science, a primitive is a fundamental data type
that cannot be broken down into a more simple data type.
1. character(char) : a character is a single visual object used to represent text, numbers,
or symbols. Here, the letter "A" is a single character. With a computer, one character
is equal to one byte, which is 8 bits.
2. integer(int): An integer is a datum of integral data type, Integral data types may be of
different sizes and may or may not be allowed to contain negative values.
3. floating point(float): This data type built into the compiler that's used to define
numeric values with floating decimal points. The float data type stores double-
precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to
IEEE 4-byte floating-point, and to the double data type in C.
4. double : The double data type is also numeric values, double-precision 64-bit IEEE
754 floating point. Its range of values is beyond the scope of this discussion, but is
specified in the Floating-Point Types,
5. void: void is used as a function return type, it indicates that the function does not
return a value.
3
Derivied Data Types in C
 In computer science, those data types which are derived
from the fundamental data types are called derived data
types.
1. array : An array is a collection of data items, all of the same type, accessed
using a common name. A one-dimensional array is like a list; A two
dimensional array is like a table; The C language places no limits on the
number of dimensions in an array, though specific implementations may.
2. pointer: A pointer is a variable whose value is the address of another
variable, i.e., direct address of the memory location. Like any variable or
constant, you must declare a pointer before using it to store any variable
address.
1. function: A function is a block of statements that performs a specific task.
Let's say you are writing a C program and you need to perform a same task in
that program more than once. In such case you have two options: a) Use the
same set of statements every time you want to perform the task.
4
User Defined Data Types in C
 In computer science, Those data types which are defined by the
user as per his/her will are called user-defined data types.
Examples of such data types are structure, union and
enumeration.
1. enum : An enumerated type (also called enumeration, enum, or factor in the
R programming language, and a categorical variable in statistics) is a data type
consisting of a set of named values called elements, members, enumeral, or
enumerators of the type.
2. Structure: A structure creates a data type that can be used to group items of
possibly different types into a single type.
3. union: A union is a special data type available in C that allows to store
different data types in the same memory location. You can define a union
with many members, but only one member can contain a value at any given
time. Unions provide an efficient way of using the same memory location for
multiple-purpose.
5
Data Types Summary in C
 A code has developed using a code compiler software
Thank You !

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

C presentation book
C presentation bookC presentation book
C presentation book
 
concept of Array, 1D & 2D array
concept of Array, 1D & 2D arrayconcept of Array, 1D & 2D array
concept of Array, 1D & 2D array
 
Constants in C Programming
Constants in C ProgrammingConstants in C Programming
Constants in C Programming
 
Function in C
Function in CFunction in C
Function in C
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
 
Structures in c language
Structures in c languageStructures in c language
Structures in c language
 
C functions
C functionsC functions
C functions
 
Pointers in c language
Pointers in c languagePointers in c language
Pointers in c language
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
 
Function in C program
Function in C programFunction in C program
Function in C program
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 
Union in C programming
Union in C programmingUnion in C programming
Union in C programming
 
Structure in C
Structure in CStructure in C
Structure in C
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional array
 
Constructor and Types of Constructors
Constructor and Types of ConstructorsConstructor and Types of Constructors
Constructor and Types of Constructors
 
Strings
StringsStrings
Strings
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements
 
C Language
C LanguageC Language
C Language
 
Structure & union
Structure & unionStructure & union
Structure & union
 

Ähnlich wie Fundamental of C Programming (Data Types)

Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...ssuser5610081
 
Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data typesManisha Keim
 
Interview Questions For C Language
Interview Questions For C Language Interview Questions For C Language
Interview Questions For C Language Rowank2
 
Concept Of C++ Data Types
Concept Of C++ Data TypesConcept Of C++ Data Types
Concept Of C++ Data Typesk v
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptxRowank2
 
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...Rowank2
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxkaransethi63
 
Basic Data Types in C++
Basic Data Types in C++ Basic Data Types in C++
Basic Data Types in C++ Hridoy Bepari
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsShanmuganathan C
 
Dot net programming concept
Dot net  programming conceptDot net  programming concept
Dot net programming conceptsandeshjadhav28
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdfAdiseshaK
 
Ch-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxCh-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxChereLemma2
 
C programming basic concepts of mahi.pptx
C programming basic concepts of mahi.pptxC programming basic concepts of mahi.pptx
C programming basic concepts of mahi.pptxKorbanMaheshwari
 

Ähnlich wie Fundamental of C Programming (Data Types) (20)

Data types
Data typesData types
Data types
 
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
 
Concept of c data types
Concept of c data typesConcept of c data types
Concept of c data types
 
Interview Questions For C Language
Interview Questions For C Language Interview Questions For C Language
Interview Questions For C Language
 
Datatypes in C++.pptx
Datatypes in C++.pptxDatatypes in C++.pptx
Datatypes in C++.pptx
 
Concept Of C++ Data Types
Concept Of C++ Data TypesConcept Of C++ Data Types
Concept Of C++ Data Types
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptx
 
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptx
 
Basic Data Types in C++
Basic Data Types in C++ Basic Data Types in C++
Basic Data Types in C++
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
 
Dot net programming concept
Dot net  programming conceptDot net  programming concept
Dot net programming concept
 
Data type
Data typeData type
Data type
 
C++ data types
C++ data typesC++ data types
C++ data types
 
C programming notes
C programming notesC programming notes
C programming notes
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdf
 
Ch-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxCh-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptx
 
LEARN C# PROGRAMMING WITH GMT
LEARN C# PROGRAMMING WITH GMTLEARN C# PROGRAMMING WITH GMT
LEARN C# PROGRAMMING WITH GMT
 
C programming basic concepts of mahi.pptx
C programming basic concepts of mahi.pptxC programming basic concepts of mahi.pptx
C programming basic concepts of mahi.pptx
 
Aniket tore
Aniket toreAniket tore
Aniket tore
 

Mehr von jimmy majumder

NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdf
NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdfNVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdf
NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdfjimmy majumder
 
Project Profile -jimmy.pdf
Project Profile -jimmy.pdfProject Profile -jimmy.pdf
Project Profile -jimmy.pdfjimmy majumder
 
Saes2021 non presenter jimmy majumder
Saes2021  non presenter jimmy majumderSaes2021  non presenter jimmy majumder
Saes2021 non presenter jimmy majumderjimmy majumder
 
AI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food ClassifierAI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food Classifierjimmy majumder
 
Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant jimmy majumder
 
Curriculum Vitae of Jimmy Majumder
Curriculum Vitae of Jimmy Majumder Curriculum Vitae of Jimmy Majumder
Curriculum Vitae of Jimmy Majumder jimmy majumder
 
Letter of Recommendation
Letter of  Recommendation Letter of  Recommendation
Letter of Recommendation jimmy majumder
 
Engineering Project profile
Engineering Project profile Engineering Project profile
Engineering Project profile jimmy majumder
 
My profile 2018.org pdf
My profile 2018.org pdfMy profile 2018.org pdf
My profile 2018.org pdfjimmy majumder
 

Mehr von jimmy majumder (11)

NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdf
NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdfNVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdf
NVIDIA-Jetson-AI-Specialist-Certificate-Jimmy-Majumder (1).pdf
 
Project Profile -jimmy.pdf
Project Profile -jimmy.pdfProject Profile -jimmy.pdf
Project Profile -jimmy.pdf
 
Saes2021 non presenter jimmy majumder
Saes2021  non presenter jimmy majumderSaes2021  non presenter jimmy majumder
Saes2021 non presenter jimmy majumder
 
AI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food ClassifierAI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food Classifier
 
Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant
 
Undergraduate Thesis
Undergraduate ThesisUndergraduate Thesis
Undergraduate Thesis
 
My Active Profile
My Active Profile My Active Profile
My Active Profile
 
Curriculum Vitae of Jimmy Majumder
Curriculum Vitae of Jimmy Majumder Curriculum Vitae of Jimmy Majumder
Curriculum Vitae of Jimmy Majumder
 
Letter of Recommendation
Letter of  Recommendation Letter of  Recommendation
Letter of Recommendation
 
Engineering Project profile
Engineering Project profile Engineering Project profile
Engineering Project profile
 
My profile 2018.org pdf
My profile 2018.org pdfMy profile 2018.org pdf
My profile 2018.org pdf
 

Kürzlich hochgeladen

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 

Kürzlich hochgeladen (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 

Fundamental of C Programming (Data Types)

  • 1. Fundamental of C Programming (Data Types) Submitted By: Engr. Jimmy Majumder cover Computer Basic and Programming
  • 2. 1 Block Diagram  Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that we can use in our program. These datatypes have different storage capacities.
  • 3. 2 Primitive Data Types in C  In computer science, a primitive is a fundamental data type that cannot be broken down into a more simple data type. 1. character(char) : a character is a single visual object used to represent text, numbers, or symbols. Here, the letter "A" is a single character. With a computer, one character is equal to one byte, which is 8 bits. 2. integer(int): An integer is a datum of integral data type, Integral data types may be of different sizes and may or may not be allowed to contain negative values. 3. floating point(float): This data type built into the compiler that's used to define numeric values with floating decimal points. The float data type stores double- precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to IEEE 4-byte floating-point, and to the double data type in C. 4. double : The double data type is also numeric values, double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, 5. void: void is used as a function return type, it indicates that the function does not return a value.
  • 4. 3 Derivied Data Types in C  In computer science, those data types which are derived from the fundamental data types are called derived data types. 1. array : An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list; A two dimensional array is like a table; The C language places no limits on the number of dimensions in an array, though specific implementations may. 2. pointer: A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address. 1. function: A function is a block of statements that performs a specific task. Let's say you are writing a C program and you need to perform a same task in that program more than once. In such case you have two options: a) Use the same set of statements every time you want to perform the task.
  • 5. 4 User Defined Data Types in C  In computer science, Those data types which are defined by the user as per his/her will are called user-defined data types. Examples of such data types are structure, union and enumeration. 1. enum : An enumerated type (also called enumeration, enum, or factor in the R programming language, and a categorical variable in statistics) is a data type consisting of a set of named values called elements, members, enumeral, or enumerators of the type. 2. Structure: A structure creates a data type that can be used to group items of possibly different types into a single type. 3. union: A union is a special data type available in C that allows to store different data types in the same memory location. You can define a union with many members, but only one member can contain a value at any given time. Unions provide an efficient way of using the same memory location for multiple-purpose.
  • 6. 5 Data Types Summary in C  A code has developed using a code compiler software Thank You !