C
Crimzon
I am using MSVC++ 6.0 compiler. I am declaring an array char
ch[5800][20]. Program works fine for these arbitrary sizes. But if I
make the size of the array bigger like ch[10000][20], the program
gives me an error message pertaining to the array size and doesnt
work.
Does it mean that the total size of the array allocated (10000 * 20)
should be less than 65535 or something like that ? The compiler help
file tells that the size of data type character is 1 Byte. Why is
there an issue with the total number of character data types allocated
? System cannot allocate so much bytes contiguously ? Is there a
simple way to overcome this problem using standard data type
declaration, without using malloc or new ? Is it an issue with near /
far pointers ?
System configs are as follows, 512 MB RAM on a INTEL 2405Mhz machine,
OS is WIN XP.
Thanks in advance
ch[5800][20]. Program works fine for these arbitrary sizes. But if I
make the size of the array bigger like ch[10000][20], the program
gives me an error message pertaining to the array size and doesnt
work.
Does it mean that the total size of the array allocated (10000 * 20)
should be less than 65535 or something like that ? The compiler help
file tells that the size of data type character is 1 Byte. Why is
there an issue with the total number of character data types allocated
? System cannot allocate so much bytes contiguously ? Is there a
simple way to overcome this problem using standard data type
declaration, without using malloc or new ? Is it an issue with near /
far pointers ?
System configs are as follows, 512 MB RAM on a INTEL 2405Mhz machine,
OS is WIN XP.
Thanks in advance