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
What happens if header file is included twice?
Why should I use standard library functions instead of writing my own?
What is null pointer in c?
What is integer constants?
What is scope and lifetime of a variable in c?
Why does everyone say not to use gets?
What is a static variable in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is character set?
What is the correct code to have following output in c using nested for loop?
Difference between macros and inline functions? Can a function be forced as inline?
What is the significance of an algorithm to C programming?
What are shell structures used for?
What is the best way of making my program efficient?
What is the symbol indicated the c-preprocessor?