![]() Related Questions Latest Answer : Dangling pointer leads the memory leak problems. The following circumstances are memory leak ( dangling pointers ), not for good programming practice , try to avoid1) Try to avoid the empty object pointer creation2) Memory allocation without de allocation.3) ... Read Answers (2) | Asked by : karibasi Tags : Pointer Latest Answer : Advantages:* Increasing the programming performance , Using pointers we can able to access the variables faster* Dynamic memory management * Data structure handling (Linkedlist, Stack ,Queue, Data dictionary,....)* File management using FILE pointer ... Tags : Pointer What is auto pointer ? What is the use of this ? Latest Answer : 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 ... Tags : Pointer Latest Answer : Let us understand through the following code snippet#include#include#include#define BLOCKSIZE 20;int main(){char *ptr;ptr=(char *)malloc(BLOCKSIZE);if(ptr!=NULL)strcpy(ptr,"mohin khan");printf("content=%s",ptr);printf("naddress=%u",ptr);free(ptr);printf("nAfter ... How to reverse a linked list using only one pointer? Latest Answer : void revshow(){struct node *p;int temp[100],count=0,i;p=head;for(i=0;p!=NULL;i++,p=p->next)temp[i]=p->num;for(i=i-1,p=head;p!=NULL;i--,p=p->next)p->num=temp[i];} ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||