In C, if you pass an array as an argument to a function, what actually gets passed?

Asked 14-Dec-2017
Viewed 648 times

0

In C, if you pass an array as an argument to a function, what actually gets passed?

1 Answer


0

 In C, if you pass an array as an argument to a function, what actually gets passed?

Before moving on to the answer to the respective question….

Let us understand what language is, we discussing about…
It is a versatile, obligatory computer programming language, supporting structured programming, lexical variable scope, and iteration, while a system that is not static in nature prevents inadvertent operations. By outline, C gives builds that guide effectively to run of the typical machine instruction, and in this manner, it has discovered enduring use in applications that had some time ago been coded in low-level computing construct, including working frameworks, and in addition different application programming for PCs extending from supercomputers to embedded frameworks.
Thus, talking about if you pass an array as an argument to a function, then it passes the Base Address of the array

Cheers!