You are viewing a single comment's thread. Return to all comments →
first i have created pointer of pointers of size n.
seq->*(seq+0)->b //(seq+0)-> *(seq+0)->first row of length n0
seq->*(seq+1)->b //(seq+0)-> *(seq+0)->second row of length n1
.....
seq->*(seq+n-1)->b and every time b has different length .
This is basically a two dimension array in which*(*(seq+j)+i) is seq[i][j] element.
For batter understanding you can watch a video on pointer to 2D array and how to access its element using pointer
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
first i have created pointer of pointers of size n.
seq->*(seq+0)->b //(seq+0)-> *(seq+0)->first row of length n0
seq->*(seq+1)->b //(seq+0)-> *(seq+0)->second row of length n1
.....
seq->*(seq+n-1)->b and every time b has different length .
This is basically a two dimension array in which*(*(seq+j)+i) is seq[i][j] element.
For batter understanding you can watch a video on pointer to 2D array and how to access its element using pointer