It works with global variable, but i wanted to make it work with passigf the arguements..
I fix it and work with arguements now.
Just have to change
countModified(car);
and
void listModified(warehouse ArrayOfStruct[]) ;
Elysia: I tried to change it to
warehouse car[2];
but i get runtime error
Stack around the variable 'car' was corrupted....
Thanks for the help!