C Sharp OOPs Object Oriented Programming Interview Questions and Answers Page 1. C Programming Questions and Answers. This section on tricky C interview questions focuses on. C Programming language questions and answers. C Programming language questions and answers in PDF format free to download.C interview. C programming Interview questions and answers. If any pointer is pointing the memory address of any variable but after some variable has deleted from that memory location while pointer is still pointing such memory location. Such pointer is known as dangling pointer and this problem is known as dangling pointer problem. What will be output of following c program? Note: In some compiler you may get warning message returning address of local variable or temporary. Explanation: variable x is local variable. Its scope and lifetime is within the function call hence after returning address of x variable x became dead and pointer is still pointing ptr is still pointing to that location. Solution of this problem: Make the variable x is as static variable. Programming interview questions and answers.pdf FREE PDF DOWNLOAD C programming. Top 30 Programming questions. C programming Interview questions and answers: C. C Programming questions and answers with. In other word we can say a pointer whose pointing object has been deleted is called dangling pointer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |