Criticism of the C programming language: Difference between revisions

Content deleted Content added
Redquark (talk | contribs)
m Internal consistency: rrv reference to C++, probably not the best place to put it
Internal consistency: another tweak
Line 122:
int sixteen = 0x3e-0x2e;
 
The reason is that <code>0x3e-0x2e</code> matches the form of a "preprocessing number" (since "<code>e-</code>" or <code>e+</code> cancould formbe part of a number in [[Scientific_notation#E_notation|scientific notation]]), and, since token-matching is greedy, is converted to a single preprocessing token. The subsequent conversion of that to a token in a later phase of translation is ill-defined, so the compiler will not obtain the intended tokenization of
 
int sixteen = 0x3e - 0x2e ;