I was going through a code and came across something like -->
TC_A &tc_a=*(TC_A *)p;
Now TC_A is a derived class of another Class 'X' of which p is an instance.
Does this mean that a new class instance of TC_A is invoked and contents of p copied onto it ?
Can i replace it with
TC_A *tc_a = new TC_A; tc_a=(TC_A)p;
It would be great if someone could help me understand as to what this code actually does.