Jan 7, 2019

[C] static in function parameter

// passing in argument has at least 10 elements.
// C++ doesn't support/need this since we have reference which can't be nullptr.
void bar(int myArray[static 10]);

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.