Interview Questions

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

C Interview Questions and Answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions