[Solved] C++ Return the reference of an array [duplicate]


Is this answer correct?

It is a declaration of a function that returns reference to an array of 10 int.

gdb tells me it returns a int * variable.

No it doesn’t. It tells you that the variable t that you created is an int * variable.

0

solved C++ Return the reference of an array [duplicate]