general question here.
I came across a program that has one 2d array like this ps[i][j]. The problem is that i know the size of the j which is 3 but i dont know the size of i (hence the reason i want to use malloc and free(). How can i use the malloc in an array like this? Because its not a 1d array but a 2d array but the issue is that i only dont know the size of i. For example this is the array
ps[?][3]
. The size of j is know which is 3 but the i size is unknown.
Thank you for your precious time, i am looking forward to your replies