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
Lists the benefits of c programming language?
Can a pointer be volatile in c?
What are the uses of null pointers?
write a program in c language to print your bio-data on the screen by using functions.
Can a pointer be static?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Which is better oop or procedural?
What is the difference between arrays and pointers?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What is data structure in c language?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is c++ used for today?
What are the types of bitwise operator?
In C programming, what command or code can be used to determine if a number of odd or even?