Why does this code:
#include <stdio.h>
int main(int argc, char** argv) {
printf("%lld
", 4294967296LL);
}
emit this for Windows:
0
but this for Linux:
4294967296
See Question&Answers more detail:osWhy does this code:
#include <stdio.h>
int main(int argc, char** argv) {
printf("%lld
", 4294967296LL);
}
emit this for Windows:
0
but this for Linux:
4294967296
See Question&Answers more detail:osThis is because Visual Studio C++ 2003 and earlier do not support %lld. But this code will work:
#include <stdio.h>
int main(int argc, char** argv) {
printf("%I64d
", 4294967296LL);
}