Explain the concept of "dangling pointers" in C.

Answers were Sorted based on User's Feedback



Explain the concept of "dangling pointers" in C...

Answer / nashiinformaticssolutions

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

Is This Answer Correct ?    0 Yes 0 No

Explain the concept of "dangling pointers" in C...

Answer / 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

More C Interview Questions

12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

4 Answers   Accenture,


Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

3 Answers   NDS,


Does c have an equivalent to pascals with statement?

0 Answers  


how to set Nth bit of a variable?

1 Answers  


from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


What is substring in c?

0 Answers  


how to implement stack work as a queue?

2 Answers  


How can I make it pause before closing the program output window?

0 Answers  


What is union and structure?

0 Answers  


What is meaning of tree

0 Answers  


What is the translation phases used in c language?

0 Answers  


Describe advantages and disadvantages of the various stock sorting algorithms

1 Answers   Microsoft,


Categories