...
| Code Block | ||
|---|---|---|
| ||
const unsigned long mask = 0xFFFFFFFFL0xFFFFFFFF; unsigned long x; /* Initialize x */ x = (x ^ mask) + 1; |
...
| Code Block | ||
|---|---|---|
| ||
const unsigned long mask = (1L1 << ((sizeof(unsigned long) * CHAR_BIT) - 1)) unsigned long x; /* Initialize x */ x = (x ^ mask) + 1; |
...