I have a problem in printing a 64 bit unsigned long long to hexadecimal number
here is the code i have given
Code:/#include<stdio.h> #include<conio.h> #include<stdint.h> void main() {clrscr(); unsigned long long state=0xffffffffffffffff; printf("%016llx",state); getch(); } expected value: ffffffffffffffff printed output: 00000000ffffffff /
can anyone solve this issue