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

how can i print "hello"

3 Answers  


where do we use volatile keyword?

1 Answers  


What is the default value of local and global variables in c?

0 Answers  


What is the importance of c in your views?

0 Answers  


What is #ifdef ? What is its application?

0 Answers   TCS,






what is the difference b/w NULL and null?

3 Answers   HSBC, IBM,


write a program whose output will be- 1 12 123 1234

10 Answers  


2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


How would you print out the data in a binary tree, level by level, starting at the top?

6 Answers   Amazon, Microsoft,


Is exit(status) truly equivalent to returning the same status from main?

0 Answers  


Tell me can the size of an array be declared at runtime?

0 Answers  


find largest of 3 no

8 Answers  


Categories