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
  • 81,660
  • 23
  • 145
  • 268
celeborn
  • 308
  • 2
  • 13

0 Answers0