-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Ishant Kumar edited this page Dec 26, 2018
·
1 revision
Welcome to the CPP2018Batch wiki!
What is a PL ? Software 1. Application Software Runs on the OS
2. System Software
Runs in the OS
Why we need it ? To Solve a Problem !! In LESS TIME !! We need to understand where is the Problem ??? 1. Model Data : Piece of Information !! -> Can be taken from User or also shown to User !! 2. View User Interface : UI 3. Controller Logical Operation
y = f(x) + 1
Model:
Storage Container !!
Its a BOX !!
add data
remove data
update data
delete container itself
1. Single Value Container
One Single Value in One Box
2. Multi Value Container
Many Values in One Box
Homogeneous
Hetrogeneous
Amazon/myntra/FK
Uber/OLA
Facebook/Instagram/Snapchat
1. Numbers
2. Textual
3. Binary
Storage Container will have types !!
-> Data Types !!
1. Basic
int char float double ....
2. Derived
array pointer functions...
3. Enumeration
enum
4. User Defined
struct and class
Basic Data Types: (Single Value Container) | PRIMITIVE TYPES
char 1 byte Range: 2Pow8 -> 256
-128 to 0 to 127
0 0 0 0 0 0 0 0
char ch = 'A';
char ch = 65;
unsigned char ch = 'A'; 0 to 255
Numbers:
short s = 10; 2 bytes
int i = 10; 4
long l = 100; 8
long int li = 10000000;
float f = 3.3; 4
double d = 2.2; 8