I wrote a program where I used pointers to point to a structure within a function.
But the problem is that I did calculations in a different function and assigned each element in the structure a value.
I want to use the values assigned to the elements in this function in another function. I don't know how to do so. Any help would be appriciated.
int DisplayPort(Goods_g *G, float variables)
G->Fish = 50*variables;
G->Cotton = 80*variables;
G->Wood = 100*variables;
G->Coco = 140*variables;
G->Sugar = 350*variables;
G->Guns = 700*variables;