Thank you so much !
I understood now. Your explanation and your code are perfect.
I will use the 2D array. It allows me to do exactly what I wanted
.
Thanks to you, I understand better how 2D arrays work and how to use pointers.
My code will be much cleaner and take up less space
.