Address of the First Element of an Array

Q

When does the compiler not implicitly generate the address of the first element of an array?

✍: FYIcenter

A

Whenever an array name appears in an expression such as:

  • array as an operand of the sizeof operator
  • array as an operand of & operator
  • array as a string literal initializer for a character array

Then the compiler does not implicitly generate the address of the address of the first element of an array.

2007-02-26, 6228👍, 0💬