fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. unsigned int poly = 4129;
  6. unsigned char CRCXORH = poly>>8;
  7. unsigned char CRCXORL = poly;
  8.  
  9. printf("0x%x, 0x%x\n",CRCXORH,CRCXORL);
  10. printf("\n0x%x",((15<<4)|(15)));
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
0x10, 0x21

0xff