I have several 450 element character arrays (storing bitmap data to display on lcd screens.) I would like to put them under a header file and #define them, but I keep getting compilation errors. How would I do this in C?
#define numbers[450] {0, 1,etc...}
#define numbers {0, 1, etc...}
#define numbers[450] then set the numbers later
and many more…
Well… you certainly don’t need to use a define. Just add them into the header as const, static arrays.
Also, if you want help on a compilation error then you should post your code.