1

I saw a function whose prototype was this:

int foo(int arr[static], size_t len);

I have learnt that it's possible to put const and volatile there, which should be adjusted to pointers pointing to objects with corresponding cv-qualifiers. But this time it doesn't seem quite the same as

int foo(static int *arr, size_t len);

as static shouldn't appear here at all.

So what is it at last?

JFMR
  • 23,265
  • 4
  • 52
  • 76
iBug
  • 35,554
  • 7
  • 89
  • 134

0 Answers0