Bit Manipulation - Clear Range Of Bits

At 12:00 , for b : can we do like this:
~((~0)<<(i+1)) ??

This expression is 0 always right?

!0 = 1
1<<anything = some positive number
!(some positive number) = 0
Now you can see if you want 0 always?