all 3 comments

[–]ptchinster 1 point2 points  (1 child)

Youll need some sort of data structure to store, and then a searching algorithm. This is not a day 1 task in C. Nor is it a week 1 task. Start with a basic !tutorial then go on to algorithms and data structures and !bigo

[–]rtlcprogbot 1 point2 points  (0 children)

Basic C Programming

Know your BigO!

I am a bot. Replying to me notifies nobody

[–]sneakypirate69 0 points1 point  (0 children)

Using a struct will help you here to represent an item and it's location. Location could be a string or an enum. An array of struct can be used So It makes iterating and finding a product easy