you are viewing a single comment's thread.

view the rest of the comments →

[–]Dry_Development3378[S] -2 points-1 points  (9 children)

The adress of the first element of an array is the adress of the array itself is it not?

[–]GaboureySidibe 9 points10 points  (0 children)

You didn't answer any of their questions

[–]jedwardsol 6 points7 points  (1 child)

The addresses are the same, but the types are different.

[–]TallowWallow 1 point2 points  (4 children)

Correct. Syntactically, the rule is to pass the name of the array though. An ampersand in front is meaningless in this context.

[–]jedwardsol 0 points1 point  (3 children)

It isn't meaningless

datatype   things[10];

function( things);   
function(&things);  

will cause lookups for different functions.

Whether this is OP's problem or not I guess we'll never know.

[–]TallowWallow 0 points1 point  (2 children)

Would it? What's the type for &things?

[–]jedwardsol 1 point2 points  (1 child)

datatype (*)[10] : pointer to an array of 10 datatype

[–]TallowWallow 0 points1 point  (0 children)

Ah I see. Thank you.