W 2 L 1 sh 7 Parameter passing - arrays Arrays are invisibly passed 'by reference' == 'by address' void f( int a[ 5 ] ){ a[ 0 ] = 5; a[ 1 ] = 4; a[ 2 ] = 3; a[ 3 ] = 2; a[ 4 ] = 1; } int main( void ){ int a[ 5 ] = { 1, 2, 3, 4, 5 }; printf( %d %d %d %d %d \n , a[0], a[1], a[2], a[3], a[4] ); f( a ); printf( %d %d %d %d %d \n , a[0], a[1], a[2], a[3], a[4] ); }
{}