问题详情
已知类A有公用数据成员a,且有A ohj2;A*const ptr-new A;则下列语句正确的是()。
A)ptr->a=100;
B)ptr=&obj2;
C)ptr++;
D)ptr=obj2;