By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,604 Members | 1,490 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,604 IT Pros & Developers. It's quick & easy.

Storing more than 32,765 signed integer values in an array

P: 1
if i give
int a[40000];
it shows "array size too large" and gives an error;


How do i store more than 32,765(2^15) signed integer values in an array in C?
I am using TuboC compiler.Please help me.
Nov 15 '06 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,510
if i give
int a[40000];
it shows "array size too large" and gives an error;


How do i store more than 32,765(2^15) signed integer values in an array in C?
I am using TuboC compiler.Please help me.
Turbo C is an old compiler originally designed for MS-DOS environments and even in the Large and Huge memory models has limitations

Any particular reason to use Turbo C? Have a look at DEV-C++
http://www.bloodshed.net/devcpp.html

which is free, easy to use and comes with the modern GNC gcc compiler
Nov 15 '06 #2

100+
P: 145
Turbo C is an old compiler originally designed for MS-DOS environments and even in the Large and Huge memory models has limitations

Any particular reason to use Turbo C? Have a look at DEV-C++
http://www.bloodshed.net/devcpp.html

which is free, easy to use and comes with the modern GNC gcc compiler
I'd second that. ;)

Also, take a look at mingw. -- Paul
Nov 15 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.