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

Home | Discussion Forum
Taiyari24Hour

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



View More Related Question

2) An array elements are always stored in ________ memory locations.

3) Consider the following type definition.

typedef char x[10];
x myArray[5];

What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

4) What will be printed after execution of the following code?

void main()
{
int arr[10] = {1,2,3,4,5};
printf("%d", arr[5]);
}

5) What is the maximum number of dimensions an array in C may have?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.