Integer types: :
Integer types: Integers are whole numbers with a range of values, range of values are machine dependent.
Integer data types are used to store numbers and characters. Here is the table of integer data type in various forms:
Example: 5, 6, 100, 2500.
integer data type in various forms :
integer data type in various forms
Floating Point Types: :
Floating Point Types: The floating-point data types are used to represent floating-point numbers. Floating-point data types come in three sizes: float (single precision), double (double precision), and long double (extended precision). The exact meaning of single, double, and extended precision is based on implementation defined. Choosing the right precision for a problem where the choice matters requires understanding of floating point computation.
Example: 9.125, 3.1254
Character Type :
Character Type Character type variable can hold a single character. As there are singed and unsigned int (either short or long), in the same way there are signed and unsigned chars; both occupy 1 byte each, but having different ranges. Unsigned characters have values between 0 and 255, signed characters have values from –128 to 127
Data Types in C, Size & Range of Data Types :
Data Types in C, Size & Range of Data Types