can’t figure out the ans
Unable to understand
Please share the question and options.
Which one line function can be used to get index of the least significant bit that is on (first 1 from right to left in binary representation of an integer) ?
options : log2( N ^ -N ) + 1 , log2( N | -N ) + 1,log2( N & -N ) + 1,log2( N ~ -N ) + 1
Please refer to this link.