adspace
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
In C programming, how do you insert quote characters (‘ and “) into the output screen?
How do you convert strings to numbers in C?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Differentiate between null and void pointers.
ATM machine and railway reservation class/object diagram
Do you know the difference between malloc() and calloc() function?
What is the difference between union and anonymous union?
What is pointer to pointer in c with example?
What is pointers in c with example?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What are pointers? What are different types of pointers?
will u please send me the placement papers to my mail???????????????????
Is int a keyword in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM