I hope someone can give me some clues or tips to get started in solving the following problem.

I have an Integer array of size 5. Now I need to copy only the first 20 bits of each integer into a Character array. So finally, the character array has first 20 bits from first integer and immediately followed by first 20 bits from second integer and so on..

I know this can be done using bit manipulation but I am not getting the right idea. I would really appreciate if someone can give me some clues.

Thanks.