Auto Pointer

What is auto pointer ? What is the use of this ?

Questions by amarendra.moharana   answers by amarendra.moharana

Showing Answers 1 - 6 of 6 Answers

vamsip

  • May 6th, 2008
 

1. using printf

     scanf("%c",&ele);        //read charecter 
    printf("ascii= %d",ele); //print it acsii value
 

  Was this answer useful?  Yes

jaihind007

  • Jul 15th, 2008
 

Auto pointer is nothing but, Proper memory management ( memory Allocation and deallocation).

In C++ there is class template "auto_ptr" this is good example for auto pointer. Only we need to allocate a memory using the "auto_ptr" class no need to deallocate a memory, Once we exit from the scope of class , automatically memory de allocated.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions