Lecture 03

Module: CS2100 Discussed how to represent the four basic data types in C: Integer Float Char Double For detailed notes, see data representation.

January 19, 2022

Data Representation

Module: CS2100 Lecture: Lecture 03 There are four basic data types in C. Namely, they are: int - 4 bytes long, which is equivalent to 32 bits. float - 4 bytes long, which is equivalent to 32 bits. double - 8 bytes long, which is equivalent to 64 bits. char - 1 byte long, which is equivalent to 8 bits. In this article, we are going to explore the underlying data structure that represet the 4 data types in C....

January 19, 2022