fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int num=10, pos,i;
  5. pos=sizeof(int)*8-1;
  6. for(i=0;i<=pos;i++)
  7. {
  8. printf("%d",num >> i && 1);
  9. }
  10. printf("\n");
  11. }
Success #stdin #stdout 0.01s 5280KB
stdin
45
stdout
11110000000000000000000000000000