I can’t use “long long”; what should I be using?
Share
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.
Assuming Snow Leopard (Mac OS X 10.6.2 – Intel), then ‘long’ is 64-bits with the default compiler.
Specify ‘g++ -m64’ and it will likely be 64-bits on earlier versions too.
Tested with:
Compiling with GCC 4.7.1 on Mac OS X 10.7.5 with option
-std=c99, the output from the program is more extensive. Thanks to apalopohapa for pointing out the oversight thatlong longetc were missing from the original.