Hello everyone. I am working on a program in which part of it I need to generate all subsets of a 10-bit binary string. So, I need to iterate through:

0000000001 - 1

0000000010 - 2

0000000011 - 3

.

.

.

1111111111 - 1023

Can anyone just help me a bit on some theoretical ways to go about this? For some reason I can't get my head around where to start.