Possible Duplicate:
How would you set a variable to the largest number possible in C?
Can we find the maximum size of a data type in C langauge?
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.
If you want to know the maximum and minimum values you can store in a variable of a given data type, you can check with these different constants:
LONG_MIN, LONG_MAX, see here, for the rest.