Coming from C++, I wonder whether it is ever needed to get the address of the object? If so, how?

The & operator below produces the address of the class reference (variable). How about the class object?

class C
{}

void main()
{
    auto variable = new C;
    auto address = &variable;
}

Thank you,
Ali

Reply via email to