Difference between null pointer and dangling pointer?
Answer Posted / vrushali
NULL pointer points to nothing.
But dangling pointers are those pointers which points to
invalid location (e.g. still points to those memory
locations which are already freed)
int *p = NULL;
Is mere a pointer which is not initialised to valid
memroy location. it points to nothing
int *q ;
q -> 0x1A
free (q);
still we can access this pointer using q. Still memory has
not been released to the system.
| Is This Answer Correct ? | 27 Yes | 5 No |
Post New Answer View All Answers
Explain void pointer?
What is self-referential structure in c programming?
What is the difference between procedural and functional programming?
What the different types of arrays in c?
What is a void pointer in c?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Where are the auto variables stored?
Linked lists -- can you tell me how to check whether a linked list is circular?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What is the use of bitwise operator?
What is wrong with this statement? Myname = 'robin';
Explain what math functions are available for integers? For floating point?
What are valid operations on pointers?
What is sizeof array?
How can I delete a file?