Hi,
I have the following program:
int main() { _int64 number = 0x12345678123456; usigned char string2[100] = {'\0'};
sprintf(string2, "_%016lx_", number); printf("%s\n", string2); }
This prints only the first 4 bytes:
_0000000012345678_
My compiler version is:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Can anyone tell why only 4 bytes are printed in the string Is this the limitation of sprintf
Thanks,
Naveen.
.NET Development19
|