what is dangling pointer?



what is dangling pointer?..

Answer / ninja

A pointer referring to an area of memory that has been
deallocated. Dereferencing such a pointer usually produces
garbage

Is This Answer Correct ?    18 Yes 0 No

Post New Answer

More C Interview Questions

How do I swap bytes?

0 Answers  


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


How can I make a program in c to print 'Hello' without using semicolon in the code?

9 Answers   C DAC, Practical Viva Questions,


can i know the source code for reversing a linked list with out using a temporary variable?

6 Answers   Honeywell,


what is the function of void main()?

8 Answers  






who is first prime minister in india??

8 Answers   Wipro,


Difference Between embedded software and soft ware?

1 Answers   Bosch,


What is the difference between realloc() and free()

1 Answers  


If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???

3 Answers   Amdocs, IBM,


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


What is union in c?

0 Answers  


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


Categories