How to check if a number is divisible by 2 in c

Just use this code




 if((t&(t-1))==0)divisibleelsenot

No comments: