Consider the following piece of code
class A{
public:
int val;
a();
}
int main(){
A obj1;
A obj2=obj1;
}
In this case, there are no pointers or heap involved. Will this A obj2=obj1 be shallow copy or deep copy? When I use addressof() function on obj1 and obj2 I get different values.