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 will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?

#include <stdio.h>
void main()
{
int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0};
printf("%u, %u", a+1, &a+1);
}

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) In C, if you pass an array as an argument to a function, what actually gets passed?

5) What is right way to Initialize array?

UP Gk Online Test

taiyari24hour.com

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