Gotchas: Difference between revisions

Content added Content deleted
Line 211: Line 211:
char myArray[30];
char myArray[30];
int j = foo(myArray,sizeof(myArray)); //passes 30 as the length parameter.
int j = foo(myArray,sizeof(myArray)); //passes 30 as the length parameter.
}

}</syntaxhighlight>
}</syntaxhighlight>