In the expression " for ( ; n>0 ; n=n>>1) "
why there is a ; before n>0 ?
Lecture : Loops - Finding Setbits
@Riankk hey Krishanu you can use this one also but don’t forget to put semicolon. there is no any specific reason to it like this
In the expression " for ( ; n>0 ; n=n>>1) "
why there is a ; before n>0 ?
@Riankk hey Krishanu you can use this one also but don’t forget to put semicolon. there is no any specific reason to it like this