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) What does the following declaration mean? int (*ptr)[10];

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 the output of the following code?

void main()
{
int a[10];
printf("%d %d", a[-1], a[12]);
}

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

UP Gk Online Test

taiyari24hour.com

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