class Test

{

public:

static int* ptr = nullptr;

};


void main()

{

int value = 10;

Test::ptr = new int;

Test::ptr = &value;

std::cout<<Test::*ptr;

}