80.9k views
2 votes
Which of the following statements is TRUE? C++ functions can return a value of type array if it is returned as a base address value. C++ functions can return a value of type array. C++ functions can return a value of type array if the array is local to that function. C++ functions cannot return a value of type array.

User Romonov
by
4.3k points

1 Answer

5 votes

Answer:

The answer to this question is "C++ functions can't return array type value".

Explanation:

In C++ language the method is a collection of declarations executing a process together. It is a statement, that tells the compiler to return and accept parameters of a function. In C++, it includes many standardized functions, which can be called by the software, and other choices were wrong, which can be described as follows:

  • In c++ function can't return array type always.
  • function is not address based.
  • If array is local to function, but function will not return array value.
User Nommer
by
4.6k points