Code:
    
#include<iostream.h> class A { public: int a; A() { a=10; cout<<"in constructor\n"; } ~A() { cout<<"in destructor\n"; } }; main() { A objA; cout<<"a ="<<objA.a<<"\n"; objA.~A(); /*Error In TC = Member Identifier Expected...?*/ cout<<"a ="<<objA.a<<"\n"; return 1; }