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

please give me answer with details #include<stdio.h> main() { int i=1; i=(++i)*(++i)*(++i); printf("%d",i); getch(); }

3 Answers  


How will you find a duplicate number in a array without negating the nos ?

0 Answers  


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

0 Answers   TCS,


Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program

19 Answers   CTS, HCL, TCS,


What was noalias and what ever happened to it?

0 Answers  






#include<std.h> int main() { char *str[]={"Frogs","Do","Not","Die","They","Croak!"}; printf("%d %d\n",sizeof(str),strlen(str)); ...return 0; } what will the output of the above program?

6 Answers  


which one is highest Priority in c? a)=,b)+,c)++,d)==

4 Answers  


Write a program to show the workingof auto variable.

2 Answers   Infotech,


write the program for prime numbers?

73 Answers   Accenture, Aptech, Infosys, TCS,


What is difference between constant pointer and constant variable?

0 Answers   Hexaware,


Which is an example of a structural homology?

0 Answers  


Does c have class?

0 Answers  


Categories