Difference between null pointer and dangling pointer?
Answer Posted / vadivel t
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.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the 4 types of organizational structures?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Explain how can type-insensitive macros be created?
What is the difference between pure virtual function and virtual function?
What is a constant?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the difference between union and structure in c?
What does the error message "DGROUP exceeds 64K" mean?
What are the modifiers available in c programming language?
What is pragma c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is scanf_s in c?
What is the concatenation operator?
What is a structure member in c?
What are the valid places to have keyword “break”?