0

I am new to C programming. I came to know that pointers can be declared for whole arrays as well.

int (arr_ptr*)[10];

My doubt is, whenever we pass an array as an argument to a function, we are passing the address of the array to that function. So, again why should we have a pointer to an array explicitly?

Please explain me with an use case, where pointers to an array can be used.

Thanks in advance.

dharma
  • 13
  • 5

0 Answers0