adplus-dvertising
frame-decoration

Question

If you pass an array as an argument to a function, what actually gets passed?

a.

First element of the array

b.

Value of elements in array

c.

Address of the last element of array

d.

Base address of the array

Posted under C Programming

Answer: (d).Base address of the array

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If you pass an array as an argument to a function, what actually gets passed?

Similar Questions

Discover Related MCQs

Q. What is meaning of following declaration ?
int arr[20];

Q. int a[20]
What will be the size of above array element ?

Q. What is meaning of the following statement ?
int *ptr[20]

Q. In C Programming, If we need to store word "INDIA" then syntax is as below -

Q. Below is an example of -
int RollNum[30][4];

Q. Pointer is special kind of variable which is used to stored __________ of the variable.

Q. Pointer variable is declared using preceding _________ sign.

Q. Address stored in the pointer variable is of type __________.

Q. Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer ?

Q. In order to fetch the address of the variable we write preceding _________ sign before variable name.

Q. A pointer is

Q. "&" is called as ___________ in pointer concept.

Q. "*" is called as ___________.

Q. What is (void*)0?

Q. In which header file is the NULL macro defined?

Q. How many bytes are occupied by near, far and huge pointers (DOS)?

Q. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?

Q. What would be the equivalent pointer expression for referring the array element a[i][j][k][l]

Q. A pointer is

Q. The operator used to get value at address stored in a pointer variable is