Wednesday, September 30, 2009

Reverse an unsigned integer(C)(Kindly check if the code is working properly)

 

uint Reverse(uint x)
{
uint y = 0;
int i=0;
for (i=0;i<32;i++) y =" (x">>= 1;
}
return y;
}

No comments:

Post a Comment