When you create an array and pass it into a function, the array decays into a pointer. But what happens if I create a class like this one:
class A
{
public:
int array[5];
};
Now if I pass an instance of class A into a function, will A.array decay into a pointer or not?
void f(A a)
{
//has a.array decayed?
}
That brings me to my next question: Are there any difference swith the array inside A when passing a reference to class A or a pointer to class A?