Multiple choice general knowledge science & technology

If an array in C++ is declared as exforsys[10] then exforsys is equal to

  1. &exforsys[0]

  2. &exforsys[9]

  3. *exforsys[0]

  4. *exforsys[1]

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C++, an array name evaluates to a pointer to its first element. Therefore, exforsys is equivalent to &exforsys[0], which is the address of the first element. This is a fundamental property of arrays in C and C++ - the array name decays to a pointer to the initial element when used in an expression.