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

hex code to binary code conversion for TINIm400kit

P: 1
Hai Guys,

I'm trying to convert my hex code into TBIN format.My code has little bugs,ie.,
Error : Array size is too large.

In my code , unsigned char array declared the size of 0x10000 in bc++
compiler give error in that line.

can u give ur suggestions and solutions.

Jun 1 '07 #1
Share this Question
Share on Google+
1 Reply

P: 1,806
The size of your array is declared as 65536 bytes (that's the decimal equivalent of hexadecimal 10000). Thats 65k for a single array of chars, which may be why the compiler is complaining. You could malloc the same amount of memory (and of course free it afterward).......
Jun 1 '07 #2

Post your reply

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