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 will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these

2 Answers   IBM,


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,


What is the purpose of clrscr () printf () and getch ()?

0 Answers  


What is cohesion in c?

0 Answers  


What is the use of the restrict keyword?

1 Answers  






what is diffrence between string and character array?

1 Answers  


what is the use of a array in c

6 Answers  


write a program to copy the string using switch case?

0 Answers   Mind Tree,


main() { printf("hello%d",print("QUARK test?")); }

5 Answers  


What is meant by initialization and how we initialize a variable?

0 Answers  


What is the explanation for modular programming?

0 Answers  


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

0 Answers  


Categories