dynamic memory allocation of 2d array in which columns are of different size
- by vishal kumar
i want to create a 2d array dynamically in c++ language. But in that 2d array columns should be of different size. i mean to say that 2d array should not be in M * N.
It should be something like....
1 2 next line
3 4 5 next line
2 3 4 5 next line
5 next line
4 5 7
I am able to create 2d array in above manner but how to display content of array continously create a problem for me.
Please anyone explain me how to come up with this problem.