0
How can i make an program that will be able to store both names and quantities on it
Create the instance of a fruit, therefore it must gather the fruits name and fruit count
3 Respuestas
+ 1
You can use 2D array for store both names and quantities.
0
Is it possible if u could give me an example of how the code could look like
0
2D array mean there have row and column combine together
So based on your case,
row can be store fruit name,
column can be store quantities
Here the examples,
https://www.programiz.com/c-programming/c-multi-dimensional-arrays