<?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>memory | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/memory/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Fri, 26 Feb 2021 10:56:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>memory | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Added a tutorial on memory use in C</title>
		<link>https://learncgames.com/added-a-tutorial-on-memory-use-in-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=added-a-tutorial-on-memory-use-in-c</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 27 Feb 2021 00:00:24 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[RAM]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2787</guid>

					<description><![CDATA[<p>You can read the tutorial here. It looks at the different ways memory is used in a C program. Do you know for instance what BSS is and when it is used compared to Data or where variables in a function declared static are held in memory? I also tried overwriting a text literal out [&#8230;]</p>
The post <a href="https://learncgames.com/added-a-tutorial-on-memory-use-in-c/">Added a tutorial on memory use in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-medium wp-image-2776" src="https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640-300x150.png" alt="RAM Board" width="300" height="150" srcset="https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640-300x150.png 300w, https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640.png 640w" sizes="(max-width: 300px) 100vw, 300px" />You can read the tutorial <a title="Link to tutorial on memory use in C" href="https://learncgames.com/tutorials/an-indepth-look-at-memory-use-in-c/" target="_blank" rel="nofollow noopener">here</a>. It looks at the different ways memory is used in a C program. Do you know for instance what BSS is and when it is used compared to Data or where variables in a function declared <strong>static</strong> are held in memory?</p>
<p>I also tried overwriting a text literal out of curiosity to see what happens. Here&#8217;s the source:</p>
<pre><code class="language-c" data-line="">#include&lt;stdio.h&gt;
#include &lt;string.h&gt;

char* name=&quot;My name is David&quot;;
int main()
{    
    strcpy_s(name,10, &quot;New name&quot;);
    printf(&quot;Name = %s\n&quot;, name);
    return 0;
}</code>

</pre>
<p>&nbsp;<br />
As you&#8217;d expect it blew up&#8221;</p>The post <a href="https://learncgames.com/added-a-tutorial-on-memory-use-in-c/">Added a tutorial on memory use in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2787</post-id>	</item>
	</channel>
</rss>
