<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: Something important abt pointer</title>
	<atom:link href="https://www.emblogic.com/blog/04/something-important-abt-pointer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/04/something-important-abt-pointer/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: nitin sharma</title>
		<link>https://www.emblogic.com/blog/04/something-important-abt-pointer/#comment-733</link>
		<dc:creator><![CDATA[nitin sharma]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 06:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2527#comment-733</guid>
		<description><![CDATA[yes you are right,
this is because when you use malloc function it holds the space in heap but in case of assigning &quot;Hello&quot; string to a pointer, first the string is stored in Read only section of stack and then the address of this stack location is assigned to ptr.
thats why you&#039;ll get segmentation fault in free(ptr) statement. 
Also by doing this u&#039;ll not able to free that memory ever in you program.]]></description>
		<content:encoded><![CDATA[<p>yes you are right,<br />
this is because when you use malloc function it holds the space in heap but in case of assigning &#8220;Hello&#8221; string to a pointer, first the string is stored in Read only section of stack and then the address of this stack location is assigned to ptr.<br />
thats why you&#8217;ll get segmentation fault in free(ptr) statement.<br />
Also by doing this u&#8217;ll not able to free that memory ever in you program.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
