I need to really find the most significant bit position of an unsigned n. It can be whatever input.
I don't want the bit value, rather I want the position of the most significant bit (it has to be 1 not 0 btw). For example, if my computer reads 0011101110, the msb is 6.
Edit: I was using from an example my teacher gave. She may be wrong. I think the msb in that example is 7. Also, I don't want a code written for me. Just explain what I should do. Like the concept of the thing. I don't wanna cheat or mooch off anyone.
New Edit: IDK how this is a duplicate as the one given to me that this is a duplicate of is nothing like my question. It wouldn't have answered a thing I asked here.