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

23rd Aug 2019, 9:07 AM
Karna Das
Karna Das - avatar
3 Respuestas
+ 1
You can use 2D array for store both names and quantities.
23rd Aug 2019, 9:11 AM
Uchiha Itachi
Uchiha Itachi - avatar
0
Is it possible if u could give me an example of how the code could look like
23rd Aug 2019, 9:18 AM
Karna Das
Karna Das - avatar
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
23rd Aug 2019, 9:28 AM
Uchiha Itachi
Uchiha Itachi - avatar