I want to write data to an array of structures. The structure itself is declared and defined inside main(). I have 3 functions that need to write, process and read the data from the array. All I could achieve was creating a global struct declaration and then passing pointers to them.I want to write data to an array of structures.