if there ispointer airthmetic following things must be consindered.
1)Pointer cant point to register variable.
2)Pointer subtraction must be stored in special variable ptrdiff_t and not in integer because it can overflow the integer.
In a two's complement number system, x &= (x-1) deletes the rightmost 1-bit
in x. Explain why. Use this observation to write a faster version of bitcount.
1)Pointer cant point to register variable.
2)Pointer subtraction must be stored in special variable ptrdiff_t and not in integer because it can overflow the integer.
In a two's complement number system, x &= (x-1) deletes the rightmost 1-bit
in x. Explain why. Use this observation to write a faster version of bitcount.
Denis ricthie
No comments:
Post a Comment