How do I make a 2d dynamic array (in C) with specific row number and different column size in each row?
For example: This is an array (3=rows)
|1 | 4 | 5 |
|3 |
|6 | 2 |
1st row - 3 columns
2nd row - 1 column
3rd row - 2 columns
I want my program while running to ask the user for every row to give the number of cols. How do I make an array like this?