Wednesday, May 13, 2009
data type in C : Integer Type
Integers are whole numbers with a machine dependent range of values. A good programming language as to support the programmer by giving a control on a range of numbers and storage space. C has 3 classes of integer storage namely short int, int and long int. All of these data types have signed and unsigned forms. A short int requires half the space than normal integer values. Unsigned numbers are always positive and consume all the bits for the magnitude of the number. The long and unsigned integers are used to declare a longer range of values.
Labels:
c training,
c++ training,
download source code,
Integer Type
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment