what is the data value range of int?

KevinMU1

Senior member
Sep 23, 2001
673
0
0
I believe it depends on your platform and compiler... generally ints are 16 bits (-32768 to 32767), as mentioned, but some platforms treat them as 32 bits, and so you have to use short ints to get a 16 bit integer. I would double-check the information with your compiler to find out exactly how it handles a plain old "int."