keep last n bits
unsigned mask;
mask = (1 << n) - 1;
unsigned lastNbits = value & mask;
Also in C:
- dining philosophers problem in c
- vector aleatorio sin repetir
- types of bastion minecraft
- sleep function in c
- 32bit or 64bit
- c program to find number of days in a month using switch case
- how to make infinite loop in c
- execute maven project in cmd
- vue router.push with params
- C %d
- how to modulo decimal c
- keep last n bits
- !isdigit c
- diamond dataset in r
- compil cywin cgi
- struct Node** head_ref
- how to globally initlailize a struct
- limit axis in one direction plt
- arduino server read
- factorial of a given number in c
- switch case c
- c right bit shift
- peripheral bus clock pic32
- c null define