#include <stdio.h>

typedef unsigned char BYTE;
typedef unsigned int WORD;
typedef unsigned long DWORD;

void bit(DWORD hex)
{
  int x;
  if(hex)
     {
        x=(hex%2)?1:0;
        bit(hex/2);
        printf("%d",x);
      }
}

int main()
{
  BYTE test=0xFF;
  WORD full=0xFFFF;
  DWORD temp=0xFFFFFFFF;

  printf("%8x =(dezimal)%8d = Binär: ",test,test);   bit(test);
  printf("\n");
  printf("%8x =(dezimal)%8d = Binär: ",full,full);   bit(full);
  printf("\n");
  printf("%8x =(dezimal)%8d = Binär: ",temp,temp);   bit(temp);
  printf("\n");

  return 0;
}
