Thanks for the quick response.
I changed the way you told.
It is working fine.

But my question is -- I can use pointer also in the main.c file

like char *myArray

But it is giving the compilation error -- like redefination; different types of indirection