KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How does passing a statically allocated array by reference work? void foo(int (&myArray)[100]) { } int main() { int a[100]; foo(a); } Does (&myArray)[100] have any meaning or its just a syntax to pass any array by reference? I don't understand separate parenthesis followed by big brackets here. Thanks.
Tags (comma-separated)
Save Edits
Cancel