{"id":402,"date":"2021-07-12T23:36:28","date_gmt":"2021-07-12T23:36:28","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=402"},"modified":"2021-09-13T12:21:05","modified_gmt":"2021-09-13T12:21:05","slug":"dangling-pointer","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/","title":{"rendered":"Dangling Pointer ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"dangling-pointer\" class=\"color-pink\" style=\"text-align: justify;\">Dangling Pointer<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\" style=\"text-align: justify;\">\n<ul>\n<li>A\u00a0dangling pointer\u00a0is pointing to a memory location that has been deleted (or freed). The dangling pointer act as a different ways there are,\n<ul>\n<li>De-allocation of memory<\/li>\n<li>Function Call<\/li>\n<li>Variable goes out of scope<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png\" alt=\" \" \/><\/div>\n<\/div>\n<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"de-allocation-of-memory\" class=\"color-blue\" style=\"text-align: justify;\">De-allocation of memory<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-cpp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-cpp code-embed-code\">#include<stdlib.h><br\/>void main()<br\/>{<br\/>    char *ptr = malloc(Constant_Value);<br\/>    free (ptr); \/\/ptr now becomes a dangling pointer<br\/>}<\/code><\/pre> <\/div>\n<ul style=\"text-align: justify;\">\n<li>First we have declared in the character pointer. After execution of some statements we have de-allocated memory which is allocated previously for the pointer.<\/li>\n<li>Immediately memory is de-allocated for pointer, pointer becomes dangling pointer.<\/li>\n<\/ul>\n<h2 id=\"function-call\" class=\"color-blue\" style=\"text-align: justify;\">Function Call<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-cpp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-cpp code-embed-code\">int * func ( void )<br\/>{<br\/>    int num = 14;<br\/>    return #<br\/>}<\/code><\/pre> <\/div>\n<ul style=\"text-align: justify;\">\n<li>The pointer may be return the correct value (1234) for a while after calling\u00a0<b>func<\/b>, but any functions called thereafter will overwrite the stack storage allocated for\u00a0<b>num<\/b>\u00a0with other values and the pointer would no longer work correctly.<\/li>\n<li>If a pointer to num must be returned, num must have scope beyond the function it might be declared as static.<\/li>\n<\/ul>\n<h2 id=\"variable-goes-out-of-scope\" class=\"color-blue\" style=\"text-align: justify;\">Variable goes out of scope<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-cpp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-cpp code-embed-code\">#include<stdlib.h><br\/>void main()<br\/>{<br\/>    char *ptr = NULL;<br\/>    {<br\/>        char ch;<br\/>        ptr = &ch;<br\/>    }\/\/dp is now a dangling pointer<br\/>}<\/code><\/pre> <\/div>\n<ul style=\"text-align: justify;\">\n<li>First we have declared in the Character Pointer.<\/li>\n<li>Next the Pointer Variable \u2018ptr\u2019 is pointing to Character Variable \u2018ch\u2019 declared in the inner block .<\/li>\n<li>As character variable is non-visible in Outer Block , then Pointer is still pointing to Same Invalid memory location in Outer block , then Pointer becomes \u201cDangling\u201d.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : A dangling pointer is pointing to a memory location&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2080],"tags":[195,491,360,368,211,199,198,363,2559,2547,2554,2558,2543,2553,2530,2546,2560,2563,2544,2538,2557,2555,2561,2533,2532,2531,2545,2556,2548,205,2117,220,222,2122,2534,2540,212,2120,2121,710,207,366,2536,204,217,2116,2123,210,200,2118,2539,2535,2542,2550,2549,2529,2551,2562,2552,2541,968,216,2119],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-accenture-interview-questions-and-answers","tag-applied-materials-interview-questions-and-answers","tag-atos-interview-questions-and-answers","tag-bmc-software-interview-questions-and-answers","tag-bosch-india-software-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-dangling-examples","tag-dangling-meaning","tag-dangling-memory","tag-dangling-memory-in-c","tag-dangling-pointer","tag-dangling-pointer-and-memory-leak","tag-dangling-pointer-definition","tag-dangling-pointer-example","tag-dangling-pointer-in-c-example","tag-dangling-pointer-in-c-language","tag-dangling-pointer-in-c","tag-dangling-pointer-in-cmemory-leak-in-c","tag-dangling-pointer-in-cpp","tag-dangling-pointer-in-data-structure","tag-dangling-pointer-in-java","tag-dangling-pointer-mcq","tag-dangling-pointer-points-to","tag-dangling-pointer-tutorialspoint","tag-dangling-reference","tag-dangling-tool","tag-define-dangling","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-einfochips-interview-questions-and-answers","tag-electronics-arts-inc-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-harman-international-interview-questions-and-answers","tag-how-can-you-create-a-dangling-pointer","tag-how-to-avoid-dangling-pointer-in-c","tag-indecomm-global-services-interview-questions-and-answers","tag-larsen-toubro-interview-questions-and-answers","tag-mathworks-india-private-limited-interview-questions-and-answers","tag-mavenir-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-null-pointer-in-cnull-pointer-c","tag-oracle-corporation-interview-questions-and-answers","tag-peoplestrong-interview-questions-and-answers","tag-philips-software-centre-pvt-ltd-interview-questions-and-answers","tag-srm-technologies-interview-questions-and-answers","tag-symphony-teleca-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-tecnotree-interview-questions-and-answers","tag-types-of-pointers-in-c","tag-uninitialized-pointer","tag-void-pointer-in-c","tag-what-is-dangling","tag-what-is-dangling-pointer","tag-what-is-dangling-pointer-and-how-to-avoid-it","tag-what-is-dangling-pointer-in-c","tag-what-is-dangling-reference","tag-what-is-the-meaning-of-dangling","tag-wild-pointer-in-c","tag-wipro-infotech-interview-questions-and-answers","tag-wipro-interview-questions-and-answers","tag-yash-technologies-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dangling Pointer ? - C++ Interview Questions and Answers<\/title>\n<meta name=\"description\" content=\"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dangling Pointer ? - C++ Interview Questions and Answers\" \/>\n<meta property=\"og:description\" content=\"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T23:36:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T12:21:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Dangling Pointer ?\",\"datePublished\":\"2021-07-12T23:36:28+00:00\",\"dateModified\":\"2021-09-13T12:21:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/\"},\"wordCount\":294,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointers.png\",\"keywords\":[\"Accenture interview questions and answers\",\"Applied Materials interview questions and answers\",\"Atos interview questions and answers\",\"BMC Software interview questions and answers\",\"Bosch India Software interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"dangling examples\",\"dangling meaning\",\"dangling memory\",\"dangling memory in c\",\"dangling pointer\",\"dangling pointer and memory leak\",\"dangling pointer definition\",\"dangling pointer example\",\"dangling pointer in c example\",\"dangling pointer in c language\",\"dangling pointer in c++\",\"dangling pointer in cmemory leak in c\",\"dangling pointer in cpp\",\"dangling pointer in data structure\",\"dangling pointer in java\",\"dangling pointer mcq\",\"dangling pointer points to\",\"dangling pointer tutorialspoint\",\"dangling reference\",\"dangling tool\",\"define dangling\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"eInfochips interview questions and answers\",\"Electronics Arts Inc interview questions and answers\",\"Flipkart interview questions and answers\",\"Harman International interview questions and answers\",\"how can you create a dangling pointer\",\"how to avoid dangling pointer in c\",\"Indecomm Global Services interview questions and answers\",\"Larsen &amp; Toubro interview questions and answers\",\"Mathworks India Private Limited interview questions and answers\",\"Mavenir interview questions and answers\",\"Mphasis interview questions and answers\",\"NetApp interview questions and answers\",\"null pointer in cnull pointer c++\",\"Oracle Corporation interview questions and answers\",\"PeopleStrong interview questions and answers\",\"Philips Software Centre Pvt Ltd interview questions and answers\",\"SRM Technologies interview questions and answers\",\"Symphony Teleca interview questions and answers\",\"Tech Mahindra interview questions and answers\",\"Tecnotree interview questions and answers\",\"types of pointers in c\",\"uninitialized pointer\",\"void pointer in c\",\"what is dangling\",\"what is dangling pointer\",\"what is dangling pointer and how to avoid it\",\"what is dangling pointer in c\",\"what is dangling reference\",\"what is the meaning of dangling\",\"wild pointer in c\",\"Wipro Infotech interview questions and answers\",\"Wipro interview questions and answers\",\"Yash Technologies interview questions and answers\"],\"articleSection\":[\"C++\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/\",\"name\":\"Dangling Pointer ? - C++ Interview Questions and Answers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointers.png\",\"datePublished\":\"2021-07-12T23:36:28+00:00\",\"dateModified\":\"2021-09-13T12:21:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointer\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointers.png\",\"contentUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/cpp\\\/dangling-pointers.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dangling Pointer ? - C++ Interview Questions and Answers","description":"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/","og_locale":"en_US","og_type":"article","og_title":"Dangling Pointer ? - C++ Interview Questions and Answers","og_description":"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T23:36:28+00:00","article_modified_time":"2021-09-13T12:21:05+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Dangling Pointer ?","datePublished":"2021-07-12T23:36:28+00:00","dateModified":"2021-09-13T12:21:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/"},"wordCount":294,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png","keywords":["Accenture interview questions and answers","Applied Materials interview questions and answers","Atos interview questions and answers","BMC Software interview questions and answers","Bosch India Software interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","dangling examples","dangling meaning","dangling memory","dangling memory in c","dangling pointer","dangling pointer and memory leak","dangling pointer definition","dangling pointer example","dangling pointer in c example","dangling pointer in c language","dangling pointer in c++","dangling pointer in cmemory leak in c","dangling pointer in cpp","dangling pointer in data structure","dangling pointer in java","dangling pointer mcq","dangling pointer points to","dangling pointer tutorialspoint","dangling reference","dangling tool","define dangling","Dell International Services India Pvt Ltd interview questions and answers","eInfochips interview questions and answers","Electronics Arts Inc interview questions and answers","Flipkart interview questions and answers","Harman International interview questions and answers","how can you create a dangling pointer","how to avoid dangling pointer in c","Indecomm Global Services interview questions and answers","Larsen &amp; Toubro interview questions and answers","Mathworks India Private Limited interview questions and answers","Mavenir interview questions and answers","Mphasis interview questions and answers","NetApp interview questions and answers","null pointer in cnull pointer c++","Oracle Corporation interview questions and answers","PeopleStrong interview questions and answers","Philips Software Centre Pvt Ltd interview questions and answers","SRM Technologies interview questions and answers","Symphony Teleca interview questions and answers","Tech Mahindra interview questions and answers","Tecnotree interview questions and answers","types of pointers in c","uninitialized pointer","void pointer in c","what is dangling","what is dangling pointer","what is dangling pointer and how to avoid it","what is dangling pointer in c","what is dangling reference","what is the meaning of dangling","wild pointer in c","Wipro Infotech interview questions and answers","Wipro interview questions and answers","Yash Technologies interview questions and answers"],"articleSection":["C++"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/","name":"Dangling Pointer ? - C++ Interview Questions and Answers","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png","datePublished":"2021-07-12T23:36:28+00:00","dateModified":"2021-09-13T12:21:05+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Dangling Pointer - C++ - A dangling pointer is pointing to a memory location that has been deleted or freed","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/cpp\/dangling-pointer\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/cpp\/dangling-pointers.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":4,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":3592,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/402\/revisions\/3592"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}