Make Library first steeps

Hello all
I'm trying to build a library to simplify my code I wroth and use it in some other projects.From what I had read about libraries I can use objects or just collect all functions and move it to a header file and cpp file.(I belive)
To my first library I choose the second option (collect all functions and move it to a header file and implement it in a cpp file) since for now I don't see vantages on using object for now.
In my main sketch I have 2 arrays and I want to move it to inside the library.Now the array is not accessible in the main sketch. Is there any way I can declare it public inside the library to be seen in the main program after include it?
Is this a good choice or should I avoid this and using a function to pass the main array to inside the local array in the library?
If I had chose using objects could I declare the array as an instance array and then become public ?

There are advantages and disadvantages to each approach, as usual.

The quick answer is, to access a variable, declared in another file, you can use "extern". eg.

Other file:

int foo [100];

Main file:

extern int foo [100];

That is not the only way of doing it.

If I try to use pointers is it suppose to work? I mean does that variable can be accessed using a pointer in the main program?

Pointers can be extern too, if that is what you mean. I'm not sure this is simplifying your project or making it more complicated.