SlideShare a Scribd company logo
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 !
Ad

More Related Content

What's hot (20)

Data types in C language
Data types in C languageData types in C language
Data types in C language
kashyap399
 
Functions in c
Functions in cFunctions in c
Functions in c
sunila tharagaturi
 
Strings in C language
Strings in C languageStrings in C language
Strings in C language
P M Patil
 
Type conversion
Type conversionType conversion
Type conversion
Frijo Francis
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
ABHISHEK fulwadhwa
 
Data types
Data typesData types
Data types
Nokesh Prabhakar
 
Function Pointer
Function PointerFunction Pointer
Function Pointer
Dr-Dipali Meher
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
Ankita Totala
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
tanmaymodi4
 
Python Exception Handling
Python Exception HandlingPython Exception Handling
Python Exception Handling
Megha V
 
Pointers
PointersPointers
Pointers
Prof. Dr. K. Adisesha
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
vinay arora
 
Formatted input and output
Formatted input and outputFormatted input and output
Formatted input and output
Online
 
What is a Variable in C Language? | Variable Declaration and initialization.pptx
What is a Variable in C Language? | Variable Declaration and initialization.pptxWhat is a Variable in C Language? | Variable Declaration and initialization.pptx
What is a Variable in C Language? | Variable Declaration and initialization.pptx
Han Ni
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
teach4uin
 
Constant, variables, data types
Constant, variables, data typesConstant, variables, data types
Constant, variables, data types
Pratik Devmurari
 
C++ presentation
C++ presentationC++ presentation
C++ presentation
SudhanshuVijay3
 
Control structures in C
Control structures in CControl structures in C
Control structures in C
baabtra.com - No. 1 supplier of quality freshers
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
savitamhaske
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
Nilesh Dalvi
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
kashyap399
 
Strings in C language
Strings in C languageStrings in C language
Strings in C language
P M Patil
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
Ankita Totala
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
tanmaymodi4
 
Python Exception Handling
Python Exception HandlingPython Exception Handling
Python Exception Handling
Megha V
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
vinay arora
 
Formatted input and output
Formatted input and outputFormatted input and output
Formatted input and output
Online
 
What is a Variable in C Language? | Variable Declaration and initialization.pptx
What is a Variable in C Language? | Variable Declaration and initialization.pptxWhat is a Variable in C Language? | Variable Declaration and initialization.pptx
What is a Variable in C Language? | Variable Declaration and initialization.pptx
Han Ni
 
3 data-types-in-c
3 data-types-in-c3 data-types-in-c
3 data-types-in-c
teach4uin
 
Constant, variables, data types
Constant, variables, data typesConstant, variables, data types
Constant, variables, data types
Pratik Devmurari
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
savitamhaske
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
Nilesh Dalvi
 

Similar to Fundamental of C Programming (Data Types) (20)

Data types
Data typesData types
Data types
Sachin Satwaskar
 
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 types
Manisha Keim
 
Interview Questions For C Language
Interview Questions For C Language Interview Questions For C Language
Interview Questions For C Language
Rowank2
 
Datatypes in C++.pptx
Datatypes in C++.pptxDatatypes in C++.pptx
Datatypes in C++.pptx
AnushkaGupta763558
 
Concept Of C++ Data Types
Concept Of C++ Data TypesConcept Of C++ Data Types
Concept Of C++ Data Types
k v
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptx
Rowank2
 
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
 
Basic C programming Language - Unit 1.pptx
Basic C programming Language - Unit 1.pptxBasic C programming Language - Unit 1.pptx
Basic C programming Language - Unit 1.pptx
Margaret Mary
 
TAPASH kumar das its my college pptasjhk
TAPASH kumar das its my college pptasjhkTAPASH kumar das its my college pptasjhk
TAPASH kumar das its my college pptasjhk
destroyer7992
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptx
karansethi63
 
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 objects
Shanmuganathan C
 
Dot net programming concept
Dot net  programming conceptDot net  programming concept
Dot net programming concept
sandeshjadhav28
 
Data type
Data typeData type
Data type
Unviersity of balochistan quetta
 
C++ data types
C++ data typesC++ data types
C++ data types
pratikborsadiya
 
introduction to programming using ANSI C
introduction to programming using ANSI Cintroduction to programming using ANSI C
introduction to programming using ANSI C
JNTUK KAKINADA
 
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
Introduction-to-C-Programming (1ggggggggggggggggg).pptxIntroduction-to-C-Programming (1ggggggggggggggggg).pptx
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
middollaganeshreddy0
 
C programming notes
C programming notesC programming notes
C programming notes
Prof. Dr. K. Adisesha
 
data types in c programming language in detail
data types in c programming language in detaildata types in c programming language in detail
data types in c programming language in detail
atulk4360
 
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 types
Manisha 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 Types
k v
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptx
Rowank2
 
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
 
Basic C programming Language - Unit 1.pptx
Basic C programming Language - Unit 1.pptxBasic C programming Language - Unit 1.pptx
Basic C programming Language - Unit 1.pptx
Margaret Mary
 
TAPASH kumar das its my college pptasjhk
TAPASH kumar das its my college pptasjhkTAPASH kumar das its my college pptasjhk
TAPASH kumar das its my college pptasjhk
destroyer7992
 
DATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptxDATA TYPES IN C Language.pptx
DATA TYPES IN C Language.pptx
karansethi63
 
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 objects
Shanmuganathan C
 
Dot net programming concept
Dot net  programming conceptDot net  programming concept
Dot net programming concept
sandeshjadhav28
 
introduction to programming using ANSI C
introduction to programming using ANSI Cintroduction to programming using ANSI C
introduction to programming using ANSI C
JNTUK KAKINADA
 
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
Introduction-to-C-Programming (1ggggggggggggggggg).pptxIntroduction-to-C-Programming (1ggggggggggggggggg).pptx
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
middollaganeshreddy0
 
data types in c programming language in detail
data types in c programming language in detaildata types in c programming language in detail
data types in c programming language in detail
atulk4360
 
Ad

More from 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
jimmy majumder
 
Project Profile -jimmy.pdf
Project Profile -jimmy.pdfProject Profile -jimmy.pdf
Project Profile -jimmy.pdf
jimmy majumder
 
Saes2021 non presenter jimmy majumder
Saes2021  non presenter jimmy majumderSaes2021  non presenter jimmy majumder
Saes2021 non presenter jimmy majumder
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
jimmy majumder
 
Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant Presentation on Nuclear Power Plant
Presentation on Nuclear Power Plant
jimmy majumder
 
Undergraduate Thesis
Undergraduate ThesisUndergraduate Thesis
Undergraduate Thesis
jimmy majumder
 
My Active Profile
My Active Profile My Active Profile
My Active Profile
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 pdf
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).pdf
jimmy majumder
 
Project Profile -jimmy.pdf
Project Profile -jimmy.pdfProject Profile -jimmy.pdf
Project Profile -jimmy.pdf
jimmy majumder
 
Saes2021 non presenter jimmy majumder
Saes2021  non presenter jimmy majumderSaes2021  non presenter jimmy majumder
Saes2021 non presenter jimmy majumder
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
jimmy 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 pdf
jimmy majumder
 
Ad

Recently uploaded (20)

New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 

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 !