What is wild pointer in c with example?



What is wild pointer in c with example?..

Answer / Saurabh Asthana

In C, a Wild Pointer (or Dangling Pointer) is a pointer that points to an undefined or deallocated memory location. For example, if you assign a value to a pointer and then free() the memory it points to, the pointer becomes a wild pointer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is string length in c?

1 Answers  


What is meant by initialization and how we initialize a variable?

1 Answers  


Is that possible to add pointers to each other?

1 Answers  


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?

1 Answers  


who is the founder of c

19 Answers   College School Exams Tests, HP,


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

1 Answers  


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1 Answers  


what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


What is a MAC Address?

1 Answers  


what are the different storage classes in c?

1 Answers   TCS,


Explain the bubble sort algorithm.

1 Answers  


Categories