Pert:
I was testing out your code above. If I change the line:
Print bitisset(i, 7)
to
Print bitisset(i, 8)
the output is:
0
1
0
1
0
0
0
0
Which is binary "10", not "8". What gives?
I was testing out your code above. If I change the line:
Print bitisset(i, 7)
to
Print bitisset(i, 8)
the output is:
0
1
0
1
0
0
0
0
Which is binary "10", not "8". What gives?