P
Prasanth
I am novice to c++,
I have the following code :
class A{
int c;
};
What is the difference between the declarations
A a;
A *a = new A();
While creating any object compiler checks for whether there is enough
memory or not. cane someone please elaborate in detail
what happens in the perspective of the memory allocations in both the
cases.... ??? And in what situations we use this.. ??
I have the following code :
class A{
int c;
};
What is the difference between the declarations
A a;
A *a = new A();
While creating any object compiler checks for whether there is enough
memory or not. cane someone please elaborate in detail
what happens in the perspective of the memory allocations in both the
cases.... ??? And in what situations we use this.. ??