[MOVED]i need help in char array structure in hitech c program

Status
Not open for further replies.

vijaynallasivam

Junior Member level 1
Joined
Nov 16, 2015
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
150
i am using mp lab hitech c compiler .i have some doubt regarding char array function .in my program
char array_1[50]; char array_2[50]; mean successfully compile but not built fault error message come .but char array_1[30]; char array_2[30] mean built successfully .what i do to over come this problem....
 

Maybe there is insufficient RAM to hold the extra 40 bytes you need (20 in each array).
If the array values are fixed - like a look-up table - you could try declaring them 'const' which would tell the compiler to store them in ROM instead of RAM but obviously the values in them can't be changed by the program if you do that.

Brian.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…