dangling pointer

English

English Wikipedia has an article on:
Wikipedia
Examples
  • A wild pointer, which may be used interchangeably with dangling pointer (sense 1):
char* dp;  // dp is immediately dangling as it is uninitialized
  • A pointer to memory that has gone out of scope (sense 2):
    {
        char* dp = NULL;
        {
            char c;
            dp = &c;
        } 
        // c falls out of scope,
        // so dp is now a dangling pointer
    }
    

Noun

dangling pointer (plural dangling pointers)Category:English lemmas#DANGLINGPOINTERCategory:English nouns#DANGLINGPOINTERCategory:English countable nouns#DANGLINGPOINTERCategory:English multiword terms#DANGLINGPOINTERCategory:English entries with incorrect language header#DANGLINGPOINTERCategory:Pages with entries#DANGLING%20POINTERCategory:Pages with 1 entry#DANGLING%20POINTER

  1. (programmingCategory:en:Programming#DANGLINGPOINTER, loosely) A pointer (variable that holds the address of a memory location) that does not reference a valid object.
    Synonym: wild pointer
  2. (programmingCategory:en:Programming#DANGLINGPOINTER, strictly) A pointer referencing memory that was previously deallocated.

Translations

Category:English countable nouns Category:English lemmas Category:English multiword terms Category:English nouns Category:Entries with translation boxes Category:Pages with 1 entry Category:Pages with entries Category:Terms with Portuguese translations Category:en:Programming