An array can be passed to a function in two ways: by passing the entire array as an argument where the function has access to modify the original array, or by passing each element individually. When passing the entire array, the syntax is to define the function with the array name and size as arguments, allowing the function to directly modify the original array.
An array can be passed to a function in two ways: by passing the entire array as an argument where the function has access to modify the original array, or by passing each element individually. When passing the entire array, the syntax is to define the function with the array name and size as arguments, allowing the function to directly modify the original array.
An array can be passed to a function in two ways: by passing the entire array as an argument where the function has access to modify the original array, or by passing each element individually. When passing the entire array, the syntax is to define the function with the array name and size as arguments, allowing the function to directly modify the original array.
1. pass entire array -- can be passed as an arguement to a function -- function gets complete access to the original array -- syntax: void modifyarray( int b[],int arraysize) -- here individual array passed as an arguments