c pass array by value?
I have this homework problem:

Part A

Write a C program that tests whether or not the following data types are passed by reference or by value, and prints what it discovers out to the terminal:

int
array of ints
Hypothetically, if your program discovers that an int is passed by value and an array of ints is passed by value, then it should produce output like:
 int: pass-by-value
array of ints: pass-by-value

The int I understand, but what I don't get is:

1. I thought the only way to pass an array was to pass the address of the first value in the array
2. does this count as passing by value or passing by reference? (http://stackoverflow.com/questions/4774456/pass-an-array-to-a-function-by-value confused me)
3. Hints on how I can do this? I'm assuming something like passing the reference to another function, manipulating it, and seeing if it changed, but I'm not sure....
c pass array by value?
===

I have this homework problem:

Part A

Write a C program that tests whether or not the following data types are passed by reference or by value, and prints what it discovers out to the terminal:

int
array of ints
Hypothetically, if your program discovers that an int is passed by value and an array of ints is passed by value, then it should produce output like:
 int: pass-by-value
array of ints: pass-by-value

The int I understand, but what I don't get is:

1. I thought the only way to pass an array was to pass the address of the first value in the array
2. does this count as passing by value or passing by reference? (http://stackoverflow.com/questions/4774456/pass-an-array-to-a-function-by-value confused me)
3. Hints on how I can do this? I'm assuming something like passing the reference to another function, manipulating it, and seeing if it changed, but I'm not sure....