Range (computer programming): Difference between revisions

Content deleted Content added
Reverted to revision 474503030 by BattyBot: That just making things unnecessarily complicated. (TW)
Line 6:
 
==Range of a variable==
The range of a variable is given as the set of possible values that that variable can hold. In the case of an integer, the variable definition is restricted to whole numbers only, and the range will cover every number within its range (including the maximum and minimum). For example, the range of a [[signedness|signed]] [[16-bit]] [[twos-complement]] [[Integer (computer science)|integer]] variable is all the integers from −32,768 to +32,767, where every number in the range has a distinct bit pattern. In contrast, the range of a signed 16-bit [[ones'-complement]] integer is all the integers from −32,727 to +32,727, where two [[signed zero]]s have distinct bit patterns.
 
==Range of an array==