RosettaCodeData/Task/Gotchas/C/gotchas-11.c

8 lines
142 B
C
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
int foo(char buf[],int length){}
int main()
{
char myArray[30];
int j = foo(myArray,sizeof(myArray)); //passes 30 as the length parameter.
}