Hello group!!This is my first thread here,so bear with me.. I have been assigned a program to study about pointers and constructors all at once and since i am a beginner,i am not able to figure out how this program works.
:ThanksCode:#include<iostream.h> #include<conio.h> #include<alloc.h> class A { private: int a; public: A() { a=30; } void show() { cout<<"\n a="<<a; } A(int x) { this->a=x; } }; int main() { clrscr(); A k,*b,a; *b=50; k=*b; b->show(); a.show(); k.show(); cin.get(); return 0; } :