array in function parameter declaration

Joined
Feb 14, 2009
Messages
1
Reaction score
0
Hi,

this is from the C standard document:
If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression.

I thought just an normal constant expression would describe this behaviour.....

In other words, what is the difference between
Code:
int foo(int a[static 10]) { ... }
and
Code:
int foo(int a[10]) { ... }
then?

Thanks for helping me out of this.

kind regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top