For creating a 32-bit mask as 1000, we need to left-shift the value of 1. For example, if we shift it three positions we obtain 1000:
int x = 1