Help Me/Question Is It Possible To Pass An Entire To A Function?

Doominic anderson

White Belt
In C programming language individual element of an array to a function and also addresses of individual elements to a function by using of calling the function by value and calling the function by reference.
Is it possible to passing an entire array to the function rather than individual element?

steve taylor

White Belt
Normal variable can be pass by value as well as pass by reference (Pass by address) to the function. But in the case of array we can pass array to function only pass by reference(Pass by address) . Because all of the array element accessed by only base address if you know the base address then adding the index value we can desired value.