Data Types
Let's discuss various data types supported in C++.
Introduction to computer memory
Consider an Excel sheet that consists of a large number of cells where each cell is used to store data. We can locate each cell in the Excel sheet using a row and column number.
Computer memory is just like an Excel sheet that contains cells of data arranged in a logical order.
However, in the computer’s memory, cells are arranged linearly. Each cell in memory can store 1 byte of data. As we know, 1 byte = 8bit; therefore, each cell can store any value from 0–255.
Get hands-on with 1200+ tech skills courses.