C Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 3)
3.
In C, if you pass an array as an argument to a function, what actually gets passed?
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
Answer: Option
Explanation:

The statement 'C' is correct. When we pass an array as a funtion argument, the base address of the array will be passed.

Discussion:
31 comments Page 3 of 4.

Ganesh said:   1 decade ago
Since arrays name represent its base adress.

Shakil said:   1 decade ago
Can anyone exaplin this in detail please.

Ch.Nagalaxmi said:   9 years ago
How to write with the logic base?

G.saikumari said:   5 years ago
I think C is the correct answer.
(3)

Vini said:   1 decade ago
What is meant by first element?

Praveena said:   1 decade ago
What is first element address?

Suraj said:   1 decade ago
@Mayank....
Both r same dude.

Manisha said:   1 decade ago
Find out the value of array.

Suganthy said:   9 years ago
I also guess the same @Raji.

Poonam said:   1 decade ago
What is base address ?


Post your comments here:

Your comments will be displayed after verification.