I found this line written in one of the solution I went through a solution
if((P>>=1))
{
//some call to a function was done here
}
I don’t know meaning of this line, is it a check for even/odd, please explain and if possible mention any link where this bitwise operators tricks and tips are given??
It won`t be to true always , it will evaluate to the value of the variable . For example in this case after the assignment is done it will become , if § , and it be True if p is not zero and false otherwise .