0

I am wondering what is the difference between int* array[5] and int (*array)[5]?

When I try the access of 2D array works with both of them. I could even accessing it with single int* array but have to multiply row*columns because they all are reserved consecutively in the memory.

Code-Apprentice
  • 76,639
  • 19
  • 130
  • 241
celeborn
  • 290
  • 2
  • 13

0 Answers0