<?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>sizeof strucure | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/sizeof-strucure/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Thu, 01 Sep 2011 14:19:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>What is the differnce between Structure and Union?</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c-faq/differnce-structure-union/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c-faq/differnce-structure-union/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Thu, 01 Sep 2011 10:29:59 +0000</pubDate>
				<category><![CDATA[C Questions & Answers]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[union]]></category>
		<category><![CDATA[sizeof strucure]]></category>
		<category><![CDATA[sizeof union]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1806</guid>

					<description><![CDATA[<p>The difference between structure and union is, 1. The amount of memory required to store a structure variable is the sum of the size of all the members. On the other hand, in case of unions, the amount of memory required is always equal to that required by its largest member. 2. In case of</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-faq/differnce-structure-union/">What is the differnce between Structure and Union?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>The difference between structure and union is,<br />
1. The amount of memory required to store a structure variable is the sum of the size of all the members.<br />
On the other hand, in case of unions, the amount of memory required is always equal to that required by its largest member.</p>
<p>2. In case of structure, each member have their own memory space but In union, one block is used by all the member of the union.</p>
<p><strong>Detailed Example:</strong></p>
<pre lang="c" line="1">
struct stu
{
	char c;
	int l;
	float p;
};
</pre>
<pre lang="c" line="1">
union emp
{
	char c;
	int l;
	float p;
};
</pre>
<p><strong>In the above example size of the structure stu is 7 and size of union emp is 4. </strong></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-faq/differnce-structure-union/">What is the differnce between Structure and Union?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c-faq/differnce-structure-union/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
