Why does this code:
#include <stdio.h> int main(int argc, char** argv) { printf('%lld\n', 4294967296LL); }
emit this for Windows:
0
but this for Linux:
4294967296
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is because Visual Studio C++ 2003 and earlier do not support %lld. But this code will work:
Size and Distance Specification (Visual Studio C++ 2003)
Size and Distance Specification (Visual Studio C++ 2005)