Explain the concept of "dangling pointers" in C.

Answer Posted / glibwaresoftsolutions

A dangling pointer points to memory that has been deallocated. Accessing it causes undefined behavior.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null always equal to 0(zero)?

782


What is #include in c?

783


Describe the order of precedence with regards to operators in C.

826


What is null pointer constant?

769


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1144


Differentiate between calloc and malloc.

988


while initialization of array why we use a[][2] why not a[2][]...?

2076


What is c mainly used for?

810


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1708


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1737


difference between Low, Middle, High Level languages in c ?

1839


What is output redirection?

882


In a switch statement, explain what will happen if a break statement is omitted?

812


Explain is it valid to address one element beyond the end of an array?

930


What is meant by errors and debugging?

840