When you call malloc() to allocate memory for a local
pointer, do you have to explicitly free() it?
Answer Posted / shruti
yup.. we have to explicitly free it..
otherwise it results in "dangling pointer"..
| Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
What is hash table in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the use of function in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is define directive?
Why void main is used in c?
What is the use of in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Can you please explain the difference between syntax vs logical error?
What is logical error?
What are the uses of a pointer?
What is the size of enum in c?
What is the difference between āgā and āgā in C?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Difference between pass by reference and pass by value?