I want to generate sequence of hexadecimal numbers starting with 07060504003020100.
Next number would be 0f0e0d0c0b0a0908 etc in that order.
When I use unsigned long long int and output the data the first 4 bits, meaning that 0 is truncated. and it prints 706050403020100.
So I was thinking of putting the number into a char array buffer(or some other buffer) and then print the output so that later if I want to compare I can do character/byte wise compare.
Can anybody help me out? char[8]="0x0706050403020100" doesn't look right.