Issue link: http://dc.ee.ubm-us.com/i/71837

PROGRAMMING POINTERS •
In C++, the only form of a floating literal Is a decimal floating literal, in which all of the digits (In both the significant part and the exponent part) are deci· mal digits. C99 also provides hexadecimal floating literals, In which the digits ·
of the significant part are hexadecimal digits.
Appending the letter L or L to a floating literal makes its type Long double. For example, 1 . 0 F has type fLoat, and 6.022e+23L has type Long
double. TABLE 1
Suffix None
Decimal Literal int
longint long long int
U oru Lori
LL or II
Combining F and L (in either case and in either order) in a floating literal is a syntax error. In C++, the only form of a floating lit-
eral is a decimal floating literal, in which all of the digits (in both the significant part and the exponent part) are decimal digits. C99 also provides hexadecimal floating literals, in which the digits of the significant part are hexadecimal digits. In a decimal floating literal, the
Lighter areas apply only to C99
occupy at least 16 bits and a Long in t must occupy at least 32 bits. On any platform, i nt and Long i nt
may occupy more than their minimum storage requirement, as long as a Long i nt occupies at least as much storage as an i nt. An tmsigned integer type must occupy the same amount of storage as its conesponding signed integer type. For instance, a 16-bit platform might use 16 bits for int and unsigned int and 32 bits for Long int and unsigned Long int. A 32-bit platform might use 32 bits for all fom types, i nt, unsigned i nt, Long i nt, and unsigned Long i nt. Table 1 describes the rules for deter-
mining the type of an integer literal in C99 and C++. A literal whose value can't be represented in any of the listed types produces a compile error. The rules in Table 1 lead to some
potential portability problems. A deci- mal integer literal whose value is not greater than 32,767 (= 21L1) has type i nt on every standard C and C++ envi- ronment. No swprise there. However, any decimal integer literal whose value is greater than 215-1 but not greater than
23Ll has type Long int on a 16-bit plat- form, but just plain i nt on a 32-bit plat- form.
For example, given the overloaded functions:
int f

- September001
- September002
- September003
- September004
- September005
- September006
- September007
- September008
- September009
- September010
- September011
- September012
- September013
- September014
- September015
- September016
- September017
- September018
- September019
- September020
- September021
- September022
- September023
- September024
- September025
- September026
- September027
- September028
- September029
- September030
- September031
- September032
- September033
- September034
- September035
- September036
- September037
- September038
- September039
- September040
- September041
- September042
- September043
- September044
- September045
- September046
- September047
- September048
- September049
- September050
- September051
- September052
- September053
- September054
- September055
- September056
- September057
- September058
- September059
- September060
- September061
- September062
- September063
- September064
- September065
- September066
- September067
- September068
- September069
- September070
- September071
- September072
- September073
- September074
- September075
- September076
- September077
- September078
- September079
- September080
- September081
- September082
- September083
- September084
- September085
- September086
- September087
- September088
- September089
- September090
- September091
- September092
- September093
- September094
- September095
- September096
- September097
- September098
- September099
- September100
- September101
- September102
- September103
- September104
- September105
- September106
- September107
- September108
- September109
- September110
- September111
- September112
- September113
- September114
- September115
- September116
- September117
- September118
- September119
- September120
- September121
- September122
- September123
- September124
- September125
- September126
- September127
- September128
- September129
- September130
- September131
- September132
- September133
- September134
- September135
- September136
- September137
- September138
- September139
- September140
- September141
- September142
- September143
- September144
- September145
- September146
- September147
- September148
- September149
- September150
- September151
- September152
- September153
- September154
- September155
- September156
- September157
- September158
- September159
- September160
- September161
- September162
- September163
- September164
- September165
- September166
- September167
- September168
- September169
- September171
- September172
- September173
- September174
- September175
- September176
- September177
- September178
- September179
- September180
- September181
- September182
- September183
- September184
- September185
- September186
- September187
- September188
- September189
- September190
- September191
- September192
- September193
- September194
- September195
- September196
- September197
- September198
- September199
- September200
- September201
- September202
- September203
- September204
- September205
- September206
- September207
- September208
- September209
- September210
- September211
- September212
- September213
- September214
- September215
- September216
- September217
- September218
- September219
- September220
- September221
- September222
- September223
- September224
- September225
- September226
- September227
- September228
- September229
- September230
- September231