H
Harry
Good Day To all,
When i am declaring a array for e.g char [45]....it means i am
declaring array of 45 characters each of which has a maximum,minimum
value limit or range...for example in VC++(compiler that i am using,it
has nothing to do with C++) char's range is -128 to +127....this is the
range for each char element.....
My doubt is what is the upper limit for the array size(45 is the size
here) and what decides it.....
In VC++,where char range is -128 to +127,am i allowed to declare array
size out of this range...for e.g char[3168].....some say that array
size is int and so it should be within the limits of int,but some say
that some compilers take the range of array size to be same as the
range of the array type...in my case the range for array size is same
as range of char(-128 to +127)........
Expecting your views....
Thanks in advance
When i am declaring a array for e.g char [45]....it means i am
declaring array of 45 characters each of which has a maximum,minimum
value limit or range...for example in VC++(compiler that i am using,it
has nothing to do with C++) char's range is -128 to +127....this is the
range for each char element.....
My doubt is what is the upper limit for the array size(45 is the size
here) and what decides it.....
In VC++,where char range is -128 to +127,am i allowed to declare array
size out of this range...for e.g char[3168].....some say that array
size is int and so it should be within the limits of int,but some say
that some compilers take the range of array size to be same as the
range of the array type...in my case the range for array size is same
as range of char(-128 to +127)........
Expecting your views....
Thanks in advance