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?
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 2 of 4.
Ravneet said:
1 decade ago
@Poonam.
Base address is the address of list element of the array.
If we pass only name of the Array to a function, it basically means that The base address is passed.
Base address is the address of list element of the array.
If we pass only name of the Array to a function, it basically means that The base address is passed.
Raji said:
9 years ago
Please say the difference between the base address and first element?
As of my knowledge base address is nothing but an address of the first element.
Am I right?
As of my knowledge base address is nothing but an address of the first element.
Am I right?
(1)
Rajab said:
1 decade ago
Write a program that reads values into an array from a file and sorts the data and writes it in a file.
Help me out with this.
Help me out with this.
Promila said:
1 decade ago
Base address of the array and array passing by reference are same or different.
Vignesh P said:
1 decade ago
Please answer any one, What is an argument in a array element?
Mayank said:
1 decade ago
What is difference in base address and first element address?
Shikha said:
1 decade ago
Base address is the first element of the memory locations.
Fuad said:
2 years ago
The right answer is c) the base address of the array.
(2)
Tanu said:
1 decade ago
Base address same as first address of array element?
Jyoti said:
9 years ago
I'm confused in either A or C can anyone explain?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers