hello

header ads

Data Types

 Data types

Data types define the type of data a variable can hold, for example an integer variable can hold integer data, a character type variable can hold character data etc.


                        

Data Type      Size                 Description

Int                    4 bytes             Stores whole numbers, without decimals

Float                    4 bytes             Stores fractional numbers, containing one or more decimals.

                                                Sufficient for storing 7 decimal digits

Double              8 bytes             Stores fractional numbers, containing one or more decimals.

                                                Sufficient for storing 15 decimal digits

Boolean             1 byte              Stores true or false values

Char                  1 byte              Stores a single character/letter/number, or ASCII values







Post a Comment

0 Comments