<?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>programming question | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/programming-question/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>Sat, 09 Jan 2021 10:23:36 +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>programming question | 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>Simple C question</title>
		<link>https://learncgames.com/simple-c-question/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-c-question</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 10 Jan 2021 00:00:51 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[programming question]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2339</guid>

					<description><![CDATA[<p>I saw this this morning and got the correct answer. I also tried it just to be sure in Visual Studio and apart from a warning, it compiled ok and ran and gave the correct answer. #include &#60;stdio.h&#62; int main() { float* p = (float*)50; p = p + 3; printf(&#34;%u\n&#34;, p); } If you [&#8230;]</p>
The post <a href="https://learncgames.com/simple-c-question/">Simple C question</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:263,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/geralt-9301\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2110767&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260128125116\/https:\/\/pixabay.com\/users\/geralt-9301\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 13:20:05&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 22:35:47&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 01:07:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-20 14:22:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 10:54:08&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-07 13:44:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-31 04:52:25&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 15:14:08&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-08 11:23:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 17:13:34&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-16 10:05:12&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-19 18:00:18&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-26 01:32:46&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-26 01:32:46&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:264,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2110767&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 13:20:07&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 22:35:46&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 01:07:40&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-20 14:22:40&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 10:54:08&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-07 13:44:17&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-31 04:52:24&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 15:14:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-08 11:23:26&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 17:13:34&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-16 10:05:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 04:08:12&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-26 01:32:46&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-26 01:32:46&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_2340" aria-describedby="caption-attachment-2340" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-2340" src="https://learncgames.com/wp-content/uploads/2021/01/question-mark-2110767_640-300x200.jpg" alt="question marks" width="300" height="200" srcset="https://learncgames.com/wp-content/uploads/2021/01/question-mark-2110767_640-300x200.jpg 300w, https://learncgames.com/wp-content/uploads/2021/01/question-mark-2110767_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-2340" class="wp-caption-text">Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2110767">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2110767">Pixabay</a></figcaption></figure>
<p>I saw this this morning and got the correct answer. I also tried it just to be sure in Visual Studio and apart from a warning, it compiled ok and ran and gave the correct answer.</p>
<pre><code class="language-c" data-line="">#include &lt;stdio.h&gt;
int main() {
	float* p = (float*)50;
	p = p + 3;
	printf(&quot;%u\n&quot;, p);
}</code></pre>
<p>If you want to avoid the warning, change the last line to</p>
<pre><code class="language-c" data-line="">	printf(&quot;%u\n&quot;, (unsigned int)p);</code></pre>
<p>So the question is what does this output?</p>
<ol>
<li>53</li>
<li>62</li>
<li>66</li>
<li>68</li>
</ol>
<p>Answer and explanation tomorrow.</p>The post <a href="https://learncgames.com/simple-c-question/">Simple C question</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">2339</post-id>	</item>
	</channel>
</rss>
