<?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: I am getting segmentation fault in the following Pgm..please explain if u clear about structure ponter&#8230;i am facing the issue that &#8230;is it madatory to initialize  struct pointer?????</title>
	<atom:link href="https://www.emblogic.com/blog/07/i-am-getting-segmentation-fault-in-the-following-pgm-please-explain-if-u-clear-about-structure-ponter-i-am-facing-the-issue-that-is-it-madatory-to-initialize-struct-pointer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/07/i-am-getting-segmentation-fault-in-the-following-pgm-please-explain-if-u-clear-about-structure-ponter-i-am-facing-the-issue-that-is-it-madatory-to-initialize-struct-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: hemant.kumar</title>
		<link>https://www.emblogic.com/blog/07/i-am-getting-segmentation-fault-in-the-following-pgm-please-explain-if-u-clear-about-structure-ponter-i-am-facing-the-issue-that-is-it-madatory-to-initialize-struct-pointer/#comment-946</link>
		<dc:creator><![CDATA[hemant.kumar]]></dc:creator>
		<pubDate>Sun, 08 Jul 2012 16:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3830#comment-946</guid>
		<description><![CDATA[when ever you use a structure pointer varible you need to allocate memory to the structure 
p=malloc(sizeof(struct logic));

otherwise Segmentation fault 
do one thing use p insted of (*p) then calculate sizeof(structure )
you will get the size of the whole structure
but in case of pointer no memory is allocated ,malloc is mandatory here]]></description>
		<content:encoded><![CDATA[<p>when ever you use a structure pointer varible you need to allocate memory to the structure<br />
p=malloc(sizeof(struct logic));</p>
<p>otherwise Segmentation fault<br />
do one thing use p insted of (*p) then calculate sizeof(structure )<br />
you will get the size of the whole structure<br />
but in case of pointer no memory is allocated ,malloc is mandatory here</p>
]]></content:encoded>
	</item>
</channel>
</rss>
