GTU # 3110003
USING
Structure {C}
Programming
PROGRAMING OF PROBLEM SOLVING (PPS)
Prof. Nilesh Gambhava
LAXMI INSTITUTE OF TECHNOLOGY
Computer Engineering Department, (LIT)
Darshan Institute of Engineering & Technology, Rajkot
,Data Types
Data types are defined as the data storage format that a variable can store a data.
Data types in C
Primary Data type
Secondary Data type
(int, float, char)
Derived Data type User defined D
(array, pointer) (structure, unio
C language has built-in datatypes like primary and derived data types.
But, still not all real world problems can be solved using those data types.
We need custom datatype for different situation.
Prof. Nilesh Gambhava #3110003 (PPS) – Structure
, User Defined Datatype
We need combination of various datatypes to understand different entity/obj
Example-1:
Book Title: Let Us C Datatype: char / string
Author: Yashavant Kanetkar Datatype: char / string
Page: 320 Datatype: int
Price: 255.00 Datatype: float
Example-2:
Student Name: ABC Datatype: char / string
Roll_No: 180540107001 Datatype: int
CPI: 7.46 Datatype: float
Backlog: 01 Datatype: int
Prof. Nilesh Gambhava #3110003 (PPS) – Structure