Here is the answer....
int main()
{
int i = 123;
while(i!=0)
{
if (i & (1<<31))
printf("1");
else
printf("0");
i <<= 1;
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment