Hi all,
I want to generate an array by shifting bits until the last element takes the value '1' such that:
1 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 or 0 0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1
How can I do that? Thanks
Best Answer