However I find that I cannot assign the val to 0xEEDDCCBBAA.
Code: Select all
unsigned long long val = 0xEEDDCCBBAA; unsigned char buf; sprintf(buf, "%d", val);
How can I use the long long variable? Or how can I perform the task without using a long long variable?