Difference between null pointer and dangling pointer?
Answer Posted / vadivel t
Minor correction in my ans #4...
To Sourisengupta Question.
free() shall free the memory which is allocated dynamically.
But afrer the free() function being called,the pointer
which u r passing to free() as an argument, shall point to
the same base address, which is no more valid(ie., address
is valid but no more in the allocated memory pool. It will
be added in the free memory pool).
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
write a program in c language to print your bio-data on the screen by using functions.
When the macros gets expanded?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain what is page thrashing?
How does normalization of huge pointer works?
Write a progarm to find the length of string using switch case?
Differentiate fundamental data types and derived data types in C.
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Where in memory are my variables stored?
Is it acceptable to declare/define a variable in a c header?
Give differences between - new and malloc() , delete and free() ?
What are dangling pointers in c?
What are pointers? What are different types of pointers?