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?

ネロク
  • 21,268
  • 3
  • 51
  • 67
iBug
  • 32,728
  • 7
  • 79
  • 117

0 Answers0