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?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

a c code by using memory allocation for add ,multiply of sprase matrixes

0 Answers  


write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?

1 Answers   Zensar,


wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain

3 Answers   TCS,


how to write a program which adds two numbers without using semicolon in c

2 Answers  


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

0 Answers  






what about "char *(*(*a[])())();"

3 Answers   Oracle,


Is a house a shell structure?

0 Answers  


why we are using semicolon at the end of printh statment

2 Answers   HCL,


How does free() know explain how much memory to release?

0 Answers  


can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?

2 Answers  


Tell me with an example the self-referential structure?

0 Answers  


What is wrong with this program statement? void = 10;

0 Answers  


Categories