<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Ashutosh Gupta</title>
	<atom:link href="https://www.emblogic.com/blog/author/ashutosh-4600464/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>How to estimate memory alocated under Double Pointer</title>
		<link>https://www.emblogic.com/blog/12/how-to-estimate-memory-alocated-under-double-pointer/</link>
		<comments>https://www.emblogic.com/blog/12/how-to-estimate-memory-alocated-under-double-pointer/#comments</comments>
		<pubDate>Wed, 16 Dec 2015 07:02:45 +0000</pubDate>
		<dc:creator><![CDATA[Ashutosh Gupta]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=13040</guid>
		<description><![CDATA[If we use single malloc for a double pointer then it simply means that the memory is allocated to the for the external Pointer i.e, malloc(**ptr) -&#62; Memory is allocated only for external pointer of  *(*ptr) which is allocated in &#8230; <a href="https://www.emblogic.com/blog/12/how-to-estimate-memory-alocated-under-double-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If we use single malloc for a double pointer then it simply means that the memory is allocated to the for the external Pointer</p>
<p>i.e, malloc(**ptr) -&gt; Memory is allocated only for external pointer of  *(*ptr) which is allocated in form of array. But to provide (*ptr) a memory location , we have to malloc() it again as follows:</p>
<p>malloc(*ptr) -&gt;Now memory is allocated for *ptr .</p>
<p>To  check the amount of memory allocated under **ptr , just print using %d format specifier and as an argument to printf call sizeof(**ptr) .</p>
<p>i.e,</p>
<p>printf(&#8220;The size under **ptr is :%d \n&#8221;,sizeof(**ptr));</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/how-to-estimate-memory-alocated-under-double-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
