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) Array passed as an argument to a function is interpreted as

3) What will be the output of the program ?

#include <stdio.h>
int main()
{
int arr[1] = {10};
printf("%d", 0[arr]);
return 0;
}

4) What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

5) Consider the following type definition.

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

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

UP Gk Online Test

taiyari24hour.com

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