What will happen when freeing memory twice

Answers were Sorted based on User's Feedback



What will happen when freeing memory twice ..

Answer / kav_029

May leads to dangling pointer

Is This Answer Correct ?    9 Yes 2 No

What will happen when freeing memory twice ..

Answer / veeresh

Memory is the very valuable, if we leave memory freely then
memory will be wasted and cant be used.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What is meant by recursion?

0 Answers   ADP,


Explain what is wrong in this statement?

0 Answers  


Why is c fast?

0 Answers  


int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }

2 Answers   Vector,


#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 Answers  






Explain the difference between structs and unions in c?

0 Answers  


What is a static variable in c?

0 Answers  


What is the difference between null pointer and wild pointer?

0 Answers  


What is getch?

0 Answers  


What is difference between array and pointer in c?

0 Answers  


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

0 Answers  


Who is the main contributor in designing the c language after dennis ritchie?

0 Answers  


Categories