Define dangling pointer?, C/C++ Programming

A: A dangling pointer arises while you use the address of an object after its lifetime is end. It may occur in situations such as returning addresses of automatic variables from a function or by the address of the memory block after this is freed.

 

Posted Date: 3/19/2013 8:56:36 AM | Location : United States







Related Discussions:- Define dangling pointer?, Assignment Help, Ask Question on Define dangling pointer?, Get Answer, Expert's Help, Define dangling pointer? Discussions

Write discussion on Define dangling pointer?
Your posts are moderated
Related Questions
Develop a program to meet the following requirements: 1. Must use at least one function in addition to main (you can use more) 2. Must use selection 3. Must use deference/indire

Described the ISA and HASA class relationships. How would you apply each in a class design? A: A specialized class "is" specialization of another class and, thus, has the ISA re

A Constructive Example Consider an example , to model a user-defined data type for  strings. The object simulates a character array ( string ) using a character pointer and an

Write a simple generic version of method isEqualTo that compares its two arguments with the equals method and returns true if they are equal and false otherwise. Use this generic m

Ask question #Minimum 100 words acceptedEducational Objectives: After completing this assignment, the student should be able to accomplish the following: Apply generic algorithms i

Within software engineering, software is very rarely written by a single software engineer. Usually a team of engineers write a program; therefore a formal structural design approa

Develop a client and a server for an instant messaging system based on UDP and IPv4

Run the following C++ program with and without preprocessor variable POSTFIX defined. #include using namespace std; extern "C" int atoi( const char *str );

Calculate the salary if the person work 8 hours/day and the salary/hour is RM5.20 - UML class diagaram -Class -Exception handling/assertion

C program to remove vowels in sentence : void main() {                 char  str[100];                 int n;                 printf("enter string\n");