You are on page 1of 3

Name: Kabir Uddin Shahab

Discipline: BDS
Lab Section: 1A1
Roll Number 22L-7486

Programming Fundamentals Lab Assignment # 1

DIFFERENT TYPES OF DATA AND THE SIZE THEY OCCUPY IN C++


Data Type Size in bytes Range

Boolean (bool) 1 byte False or True

Character (char) 1 byte -128 to 127 by default

2,147,483,648
Integer (int) 2 or 4 bytes To
2,147,483,647

Floating Point Number 4 bytes 3.4E +/- 38 (7 digits)


(float)

Double 8 bytes 1.7E +/- 308 (15 digits)

This table accurately shows the amount of memory used by each data type and
also the range of their existence

SCREENSHOT OF SIMPLE “HELLO WORLD” PROJECT IN C++


SCREENSHOT OF SIMPLE INTRODUCTION PROJECT IN C++

You might also like