How to return the last n digits of an unsigned number in C language
This article mainly shows you "how C language returns the last n digits of an unsigned number". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how C language returns the last n digits of an unsigned number".
Returns the last n digits of an unsigned number
Typedef unsigned long dword; / * Unsigned 32 bit value type * / # define MOD_BY_POWER_OF_TWO (val, mod_by)\ (dword) (val) & (dword) (2