0

In two dimension array let say arr[x][y]. How can i make a c program having different x and y value or x and y be the user input

21st Sep 2018, 6:33 PM
Riya Runjhun
3 Answers
0
You know pointers? And malloc function?
21st Sep 2018, 6:39 PM
KrOW
KrOW - avatar
0
yes, I know
21st Sep 2018, 6:43 PM
Riya Runjhun
0
Well... You can see an 2d array simply like an array of x pointers which they self are pointers to an array of y items...
21st Sep 2018, 6:45 PM
KrOW
KrOW - avatar