Machine-translated by Google. Questions are authored in English.
Top

Discussion

Does this mentioning array name gives the base address in all the contexts?

  • A.Yes
  • B.No

Answer: B

Correct answer: No

Not in all contexts. Two operators take the array as a whole rather than letting it decay: sizeof(arr) gives the size of the entire array, and &arr yields a pointer to the array rather than to its first element. Everywhere else the name does give the base address.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.