Prefix operation is faster when compared to postfix operation.
Now let us see how both postfix and prefix work.
// postfix
iterator operator++(int)
{
iterator _Tmp = *this;
++*this;
return...
Type: Posts; User: elizas
Prefix operation is faster when compared to postfix operation.
Now let us see how both postfix and prefix work.
// postfix
iterator operator++(int)
{
iterator _Tmp = *this;
++*this;
return...
The memory leak information is printed on "Output" window.
[ This advantage is in "Debug" mode only. ]
Example
int _tmain()
{
int* ptr = NULL;
ptr = (int*)malloc(sizeof(int)*20);