Explain the concept of "dangling pointers" in C.
Answers were Sorted based on User's Feedback
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 |
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 |
What is double pointer?
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
a=5 a=a++/++a
What is auto keyword in c?
Explain the term printf() and scanf() used in c language?
What are the different types of endless loops?
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
main() { charx; while (x=0;x<=255;x++) printf("\nAscii value %d Character %c,x,x); }
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
How can I make sure that my program is the only one accessing a file?
how to copy a string without using c function