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

List some basic data types in c?

0 Answers  


What is a newline escape sequence?

0 Answers  


What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

5 Answers   CCEM, TCS,


Can we replace the struct function in tree syntax with a union?

0 Answers   Huawei,


What should not contain a header file?

2 Answers  






Why clrscr is used after variable declaration?

0 Answers  


input any 4 digit number and find the difference of all the digits?

3 Answers   Google,


Why doesnt the call scanf work?

0 Answers  


How is null defined in c?

0 Answers  


extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }

2 Answers  


Why functions are used in c?

0 Answers  


What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }

1 Answers   Google,


Categories