How
to remember size of data type in c?
If you have
memorized the size of data type in all types c compiler then there is not any
problem. If you cannot memorized then it is also not a problem because every c compiler
provide one header file <limits.h>
which contain some micro constants for size of integral data type which is easy
to memorize. Those micro constants are:
IN TURBO C++ IDE (Header
file: <limits.h>)
IN LINUX GCC Compiler (Header file:
<limits.h>,<float.h>)
Make
the habit to use macro constant to check boundary condition so that your
programs will more platforms independent.
Introduction
List of data types
Primitive data types in c
Modifiers of data types in c
List of modifiers in c
Default modifiers of data types in c
Default data of modifiers in c
Rules of using modifiers in c
Possibles modifiers of given data types in c
Size modifier in c
Size of data types in c
Sign modifier in c
Range of data types in c
Easy way to remember limit of data types in c
Const modifiers in c
Pointers modifier in c
Function modifier in c
Interrupt modifier in c
Volatile modifier in c
Fundamental data types in c
Memory representation of char in c
Memory representation of signed char in c
Memory representation of int in c
Memory representation of signed int in c
Memory representation of double in c
1 comment:
find the range of data types using limit.h
Post a Comment