I want to use the contents of a 2-D array in different .cpp files
So, I taught of doing it with a header file.
Direct initialization outside a funtion is Not Allowed and so "abc=98;" is giving an error.Code:(In XYZ.h) int abc; abc=98; // This is not valid
I want to use that array in different .cpp files
So how should I do this?
Also i have another question
If my array is filled in this way
abc -- Has 20 elements
abc -- actually needs only abc (10 elements are enough)
So is it possible to dynamically do it to save that extra space used.