> while(Inventory[a].stock!=0)
¿did you initialise your variables correctly?
¿does that condition holds so you can read the data?
you don't seem to reset `a' before trying to do the output.
> fflush(stdin);
The manual specify the behaviour «For input streams associated with seekable files (e.g., disk files, but not pipes or terminals)»
I have no idea what's that supposed to do in your case.
> a=a++;
that's undefined behaviour, don't use such constructions.
You may simply do ++a;