hi all,
merry christmas!! to the point: i'm trying to learn C programming.
when reading books or online tutorials i keep coming across that the maximum value of a "signed int" is 32767.
however, when i try programming code and assign a value greater than 32767, like 7000000, to an int variable, i can still assign my number even though books/tutorials say otherwise.
i noticed they also mention that it differs from computer to computer. how do i find out what the maximum limit is on my computer OR
if i am approaching the concept the wrong way please show me the right way.
merry christmas,
chipy
merry christmas!! to the point: i'm trying to learn C programming.
when reading books or online tutorials i keep coming across that the maximum value of a "signed int" is 32767.
however, when i try programming code and assign a value greater than 32767, like 7000000, to an int variable, i can still assign my number even though books/tutorials say otherwise.
i noticed they also mention that it differs from computer to computer. how do i find out what the maximum limit is on my computer OR
if i am approaching the concept the wrong way please show me the right way.
merry christmas,
chipy
