SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
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

Recommended

PPTX
Data Types and Variables In C Programming
Kamal Acharya
 
PPTX
C keywords and identifiers
Akhileshwar Reddy Ankireddy
 
PPT
Instruction format
Sanjeev Patel
 
PPTX
Introduction Of C++
Sangharsh agarwal
 
PDF
Function in C
Dr. Abhineet Anand
 
PPTX
Function in C program
Nurul Zakiah Zamri Tan
 
PPT
Variables in C Programming
programming9
 
DOCX
C – operators and expressions
Chukka Nikhil Chakravarthy
 
PPTX
C functions
University of Potsdam
 
PPTX
Data types in C
Tarun Sharma
 
PPT
Constants in C Programming
programming9
 
PPTX
What is keyword in c programming
Rumman Ansari
 
PPT
Function overloading(c++)
Ritika Sharma
 
PPTX
Computer arithmetic
Balakrishna Chowdary
 
ODP
CProgrammingTutorial
Muthuselvam RS
 
PPSX
Files in c++
Selvin Josy Bai Somu
 
PDF
Introduction to c++ ppt
Prof. Dr. K. Adisesha
 
PPT
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
PPTX
Operator overloading
Ramish Suleman
 
DOC
C fundamental
Selvam Edwin
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
PPTX
c++ programming Unit 2 basic structure of a c++ program
AAKASH KUMAR
 
PPTX
Loops in C Programming Language
Mahantesh Devoor
 
PPTX
Type conversion, precedence, associativity in c programming
Dhrumil Panchal
 
PPTX
Data types in C language
kashyap399
 
PPTX
Presentation on C Switch Case Statements
Dipesh Panday
 
PPTX
C if else
Ritwik Das
 
PPTX
Ganesh C-programming full detailed pptpptx
GaneshkumarCreation
 
PPTX
DATA TYPES IN C Language.pptx
karansethi63
 

More Related Content

What's hot (20)

PPTX
C functions
University of Potsdam
 
PPTX
Data types in C
Tarun Sharma
 
PPT
Constants in C Programming
programming9
 
PPTX
What is keyword in c programming
Rumman Ansari
 
PPT
Function overloading(c++)
Ritika Sharma
 
PPTX
Computer arithmetic
Balakrishna Chowdary
 
ODP
CProgrammingTutorial
Muthuselvam RS
 
PPSX
Files in c++
Selvin Josy Bai Somu
 
PDF
Introduction to c++ ppt
Prof. Dr. K. Adisesha
 
PPT
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
PPTX
Operator overloading
Ramish Suleman
 
DOC
C fundamental
Selvam Edwin
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
PPTX
c++ programming Unit 2 basic structure of a c++ program
AAKASH KUMAR
 
PPTX
Loops in C Programming Language
Mahantesh Devoor
 
PPTX
Type conversion, precedence, associativity in c programming
Dhrumil Panchal
 
PPTX
Data types in C language
kashyap399
 
PPTX
Presentation on C Switch Case Statements
Dipesh Panday
 
PPTX
C if else
Ritwik Das
 
Data types in C
Tarun Sharma
 
Constants in C Programming
programming9
 
What is keyword in c programming
Rumman Ansari
 
Function overloading(c++)
Ritika Sharma
 
Computer arithmetic
Balakrishna Chowdary
 
CProgrammingTutorial
Muthuselvam RS
 
Files in c++
Selvin Josy Bai Somu
 
Introduction to c++ ppt
Prof. Dr. K. Adisesha
 
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
Operator overloading
Ramish Suleman
 
C fundamental
Selvam Edwin
 
Operators and expressions in c language
tanmaymodi4
 
c++ programming Unit 2 basic structure of a c++ program
AAKASH KUMAR
 
Loops in C Programming Language
Mahantesh Devoor
 
Type conversion, precedence, associativity in c programming
Dhrumil Panchal
 
Data types in C language
kashyap399
 
Presentation on C Switch Case Statements
Dipesh Panday
 
C if else
Ritwik Das
 

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

PPTX
Ganesh C-programming full detailed pptpptx
GaneshkumarCreation
 
PPTX
DATA TYPES IN C Language.pptx
karansethi63
 
PPTX
TAPASH kumar das its my college pptasjhk
destroyer7992
 
PPTX
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
ssuser5610081
 
PPTX
Datatypes in c
CGC Technical campus,Mohali
 
PPTX
C data types, arrays and structs
Saad Sheikh
 
PPTX
data types in c programming language in detail
atulk4360
 
PPTX
Data types
Sachin Satwaskar
 
PPSX
Data type
Frijo Francis
 
PPTX
PPS_unit_2_gtu_sem_2_year_2023_GTUU.pptx
ZwecklosSe
 
PPTX
Data types in C
Ansh Kashyap
 
PPTX
PROGRAMMING IN C- Data Types.pptx
Nithya K
 
PPS
C programming unit 01
Prashanth Shivakumar
 
PPTX
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
AmrutaNavale2
 
PDF
Data structure & Algorithms - Programming in C
babuk110
 
PPTX
datatypes and specifiers_and variables.pptx
ShirishaBuduputi
 
PPTX
UNIT IC programming notes university file
ANISHYAPIT
 
PPTX
structured Programming Unit-2-Basic-Elements-of-C.pptx
SuryaBasnet1
 
PPTX
Basic C programming Language - Unit 1.pptx
Margaret Mary
 
PPTX
C PROGRAMMING LANGUAGE
PRASANYA K
 
Ganesh C-programming full detailed pptpptx
GaneshkumarCreation
 
DATA TYPES IN C Language.pptx
karansethi63
 
TAPASH kumar das its my college pptasjhk
destroyer7992
 
Data Types in C++-Primary or Built-in or Fundamental data type Derived data t...
ssuser5610081
 
C data types, arrays and structs
Saad Sheikh
 
data types in c programming language in detail
atulk4360
 
Data types
Sachin Satwaskar
 
Data type
Frijo Francis
 
PPS_unit_2_gtu_sem_2_year_2023_GTUU.pptx
ZwecklosSe
 
Data types in C
Ansh Kashyap
 
PROGRAMMING IN C- Data Types.pptx
Nithya K
 
C programming unit 01
Prashanth Shivakumar
 
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
AmrutaNavale2
 
Data structure & Algorithms - Programming in C
babuk110
 
datatypes and specifiers_and variables.pptx
ShirishaBuduputi
 
UNIT IC programming notes university file
ANISHYAPIT
 
structured Programming Unit-2-Basic-Elements-of-C.pptx
SuryaBasnet1
 
Basic C programming Language - Unit 1.pptx
Margaret Mary
 
C PROGRAMMING LANGUAGE
PRASANYA K
 
Ad

More from jimmy majumder (11)

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

Recently uploaded (20)

PPTX
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
PPTX
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
PPTX
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
PDF
Complete guidance book of Asp.Net Web API
Shabista Imam
 
PDF
Complete University of Calculus :: 2nd edition
Shabista Imam
 
PDF
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
PDF
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
PPTX
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
PDF
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
PPTX
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
PDF
Rapid Prototyping for XR: Lecture 3 - Video and Paper Prototyping
Mark Billinghurst
 
PPTX
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
PPTX
Bitumen Emulsion by Dr Sangita Ex CRRI Delhi
grilcodes
 
PDF
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
PDF
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
PDF
Modern multi-proposer consensus implementations
François Garillot
 
PDF
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
PDF
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
PPTX
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
 
PPTX
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Complete University of Calculus :: 2nd edition
Shabista Imam
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
Rapid Prototyping for XR: Lecture 3 - Video and Paper Prototyping
Mark Billinghurst
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
Bitumen Emulsion by Dr Sangita Ex CRRI Delhi
grilcodes
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
Modern multi-proposer consensus implementations
François Garillot
 
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
 
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 

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 !