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

Explain how can I convert a number to a string?

0 Answers  


what is the difference between <stdio.h> and "stdio.h"

14 Answers   Invendis, Kanbay, Mastek, MathWorks,


What is malloc() function?

0 Answers  


print the table 5 in loops

3 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

0 Answers   TCS,


What is the collection of communication lines and routers called?

0 Answers  


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


Write a program in c to print 1 121 12321 1234321 123454321

11 Answers   ANR, College School Exams Tests, Mu Sigma, Wipro,


Write a C program that reads a series of strings and prints only those ending in "ed"

2 Answers   Accenture,


What is a nested loop?

0 Answers  


a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..

1 Answers  


main() { clrscr(); } clrscr();

6 Answers   ME, Wipro,


Categories