Re: static Object Vs Pointer
Somebody was wondering the same thing a few days ago...also, I'm not sure its quite correct to refer to objects created on the stack as "static." C++ has a "static" keyword that means something quite different.
http://www.qtcentre.org/forum/f-gene...ing-13962.html
Re: static Object Vs Pointer
I tend to use the term "full/complete object" (in contrast to pointers that later get assigned a heap based object) for describing stack based objects.
Re: static Object Vs Pointer
Thank you for ur reply. Still i need clear difference between the both.
Re: static Object Vs Pointer
The only difference is that they are created in different regions of computer memory and heap based objects are persistent in such a way that they don't get deleted automatically as they have no scope. There are no general rules when to use which.