Can anyone explain the output of this program and how I can fix it?
unsigned long long ns = strtoull(\"123110724001300\", (char **)NULL, 10); fprintf(stderr,
I cannot explain the behavior. However, on 32 bit Windows XP with Cygwin gcc-4.3.2:
gcc-4.3.2
#include #include int main(void) { unsigned long long ns = strtoull("123110724001300", NULL, 10); fprintf(stderr, "%llu\n", ns); return 0; }
prints
E:\Home> t.exe 123110724001300