<?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>C99 | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/c99/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>Tue, 02 Mar 2021 11:09:09 +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>C99 | 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>In praise of Visual Studio</title>
		<link>https://learncgames.com/in-praise-of-visual-studio/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=in-praise-of-visual-studio</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 00:00:56 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C99]]></category>
		<category><![CDATA[msvc]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2814</guid>

					<description><![CDATA[<p>Looking at some of the posts on the C subreddit about recommendations for a text editor to help learn C, I see many people recommending editors like Sublime Text, Notepad (on Windows). I started programming in an era when IDEs were few and far between and an IDE is a wonderful time saving device. It [&#8230;]</p>
The post <a href="https://learncgames.com/in-praise-of-visual-studio/">In praise of Visual Studio</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;:126,&quot;href&quot;:&quot;https:\/\/www.reddit.com\/r\/C_Programming\/comments\/lv7klm\/a_good_text_editor_for_learning_c&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250130021526\/https:\/\/www.reddit.com\/r\/C_Programming\/comments\/lv7klm\/a_good_text_editor_for_learning_c\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:10:39&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-10 12:08:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 01:01:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-28 01:36:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 08:09:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 16:06:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 13:44:59&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 13:44:59&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:127,&quot;href&quot;:&quot;https:\/\/visualstudio.microsoft.com\/downloads&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205034014\/https:\/\/visualstudio.microsoft.com\/downloads\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:10:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 12:08:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 01:01:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-28 01:36:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 08:09:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 13:44:59&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 13:44:59&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft  wp-image-2816" src="https://learncgames.com/wp-content/uploads/2021/03/visual-studio-1024x757.png" alt="Visual Studio debugging" width="699" height="517" srcset="https://learncgames.com/wp-content/uploads/2021/03/visual-studio-1024x757.png 1024w, https://learncgames.com/wp-content/uploads/2021/03/visual-studio-300x222.png 300w, https://learncgames.com/wp-content/uploads/2021/03/visual-studio-768x568.png 768w, https://learncgames.com/wp-content/uploads/2021/03/visual-studio.png 1147w" sizes="(max-width: 699px) 100vw, 699px" />Looking at some of the posts on the <a title="Link to C subreddit" href="https://www.reddit.com/r/C_Programming/comments/lv7klm/a_good_text_editor_for_learning_c/" target="_blank" rel="nofollow noopener">C subreddi</a>t about recommendations for a text editor to help learn C, I see many people recommending editors like Sublime Text, Notepad (<em>on Windows</em>).</p>
<p>I started programming in an era when IDEs were few and far between and an IDE is a wonderful time saving device. It is vastly superior to editing in a text editor then launching a compiler either by command or a batch file.</p>
<p>With an IDE you get immediate feedback on where the errors are, sometimes with a mini-map that lets you navigate directly to the error. It&#8217;s quicker to refactor code (<em>though that&#8217;s a function of an editor</em>) and usually one key press away from running or debugging.</p>
<p>Debugging in particular is very good in Visual Studio on Windows or Visual Studio Code on Windows/Linux/Mac. It&#8217;s visual, you can see multiple lines of code, add breakpoints and step through it with one key press.</p>
<p>I find line debuggers like GDB to be very frustrating by comparison.  Mousing over a variable and seeing its value in a debugger is a big time saver. Also seeing the stack calls and being able to jump to calls in the stack is handy.</p>
<p>Now if you are used to Linux, working in a terminal and compiling code through batch files then fine, but I believe its a bit of a hurdle for new programmers. An IDE makes it easy to switch from editing, compiling and debugging without leaving the program. It is all round more productive and easier to get into for a beginner.</p>
<p>So it&#8217;s worth at least trying out the free version (<em>Community Edition</em>) of <a title="Link to download page for Visual Studio" href="https://visualstudio.microsoft.com/downloads/" target="_blank" rel="nofollow noopener">Visual Studio</a> if you are on Windows.  The days when Microsoft hated Linux (<em>They called it a cancer!</em>) are long past.  And no I don&#8217;t get paid for advocating Visual Studio; I just like it. Considering that it&#8217;s completely free, it&#8217;s remarkable value.</p>The post <a href="https://learncgames.com/in-praise-of-visual-studio/">In praise of Visual Studio</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">2814</post-id>	</item>
		<item>
		<title>Do you declare variables at the top of functions</title>
		<link>https://learncgames.com/do-you-declare-variables-at-the-top-of-functions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=do-you-declare-variables-at-the-top-of-functions</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 11 Jul 2020 23:00:26 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[C99]]></category>
		<category><![CDATA[variable]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=971</guid>

					<description><![CDATA[<p>This is for C99 and later. Prior to this, in function you had to declare all the variables that would be used in that function before any code. Since C99, you can declare them nearer to where they are used. This function is from the Asteroids game. The declaration of the two variables hx,hy could [&#8230;]</p>
The post <a href="https://learncgames.com/do-you-declare-variables-at-the-top-of-functions/">Do you declare variables at the top of functions</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;:631,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/TheDigitalArtist-202249\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1274888&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260202125618\/https:\/\/pixabay.com\/users\/thedigitalartist-202249\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:50:17&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 10:14:22&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-18 14:15:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-26 12:38:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 15:32:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 11:17:24&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 11:17:24&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:632,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1274888&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 16:50:24&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 10:14:22&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-18 14:15:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-26 12:38:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 15:32:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 11:17:22&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 11:17:22&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_972" aria-describedby="caption-attachment-972" style="width: 300px" class="wp-caption alignleft"><img decoding="async" class="size-medium wp-image-972" src="https://learncgames.com/wp-content/uploads/2020/07/matrix-1274888_640-300x225.png" alt="Matrix code" width="300" height="225" srcset="https://learncgames.com/wp-content/uploads/2020/07/matrix-1274888_640-300x225.png 300w, https://learncgames.com/wp-content/uploads/2020/07/matrix-1274888_640.png 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-972" class="wp-caption-text">Image by <a href="https://pixabay.com/users/TheDigitalArtist-202249/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1274888">Pete Linforth</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1274888">Pixabay</a></figcaption></figure>
<p>This is for C99 and later. Prior to this, in function you had to declare all the variables that would be used in that function before any code. Since C99, you can declare them nearer to where they are used.</p>
<p>This function is from the Asteroids game. The declaration of the two variables hx,hy could have been moved to just before the do-loop. They can&#8217;t be declared inside the do-loop because they are used after it.</p>
<pre><code class="language-c" data-line="">// doHyperJump() find empty space on screen fo PlayerShip
void CheckJump() {
	int hx, hy;

	if (jumpFlag &amp;&amp; SDL_GetTicks() - jumpTimer &gt; 3000) { 
		jumpTimer = SDL_GetTicks();
		jumpFlag = 0;
		do {
			hx = 65 + Random(SCREENWIDTH - 130);
			hy = 65 + Random(SCREENHEIGHT - 130);
			if (IsEmptySpace(hx, hy)) break;
		} while (1);
		Player.x = (float)hx;
		Player.y = (float)hy;
		Player.vx = 0;
		Player.vy = 0;
	}
}</code></pre>
<p>This is one of those cases where it doesn&#8217;t really matter. But generally I will declare them close to where they are first used and I almost always declare the for-loop variable in the for-loop. Only if it&#8217;s needed afterwards do I declare it after, but that is a slightly iffy use unless you want to check the value it had when it exited the loop.</p>
<p>Remember the scope of the variable i.e. the part of the function in which the variable can be accessed starts just after it is declared. By keeping declarations near the code, you reduce the scope and this can help robustness.</p>The post <a href="https://learncgames.com/do-you-declare-variables-at-the-top-of-functions/">Do you declare variables at the top of functions</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">971</post-id>	</item>
		<item>
		<title>I&#8217;m considering switching to C11</title>
		<link>https://learncgames.com/im-considering-switching-to-c11/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-considering-switching-to-c11</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 00:00:45 +0000</pubDate>
				<category><![CDATA[Clang]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[C11]]></category>
		<category><![CDATA[C99]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=134</guid>

					<description><![CDATA[<p>All C code I write in the books is currently to the C99 standard. All the compilers involved (Visual C++ on Windows and Clang on Ubuntu) support C99 but C11 support seems restricted to GCC and Clang. Microsoft has traditionally supported C++ but their C support seems a bit grudging; realistically they don&#8217;t prioritise it [&#8230;]</p>
The post <a href="https://learncgames.com/im-considering-switching-to-c11/">I’m considering switching to C11</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;:472,&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=942487&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 15:15:42&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 02:14:17&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-22 09:31:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 22:26:50&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-10 14:16:21&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-15 04:58:11&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 06:58:02&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 05:47:12&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 04:25:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-10 01:48:01&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 13:39:47&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 23:08:37&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 23:08:37&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:473,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=942487&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 15:15:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 02:14:17&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-22 09:31:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 22:26:50&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-10 14:16:21&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-15 04:58:05&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 06:58:02&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 05:47:13&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 04:25:31&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-10 01:48:00&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 13:39:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 23:08:41&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 23:08:41&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:817,&quot;href&quot;:&quot;https:\/\/en.wikichip.org\/wiki\/c\/c11&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20210506225725\/https:\/\/en.wikichip.org\/wiki\/c\/c11&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 19:36:02&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-02-11 21:41:38&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-02-23 00:07:14&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-03-04 22:26:50&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-03-10 14:16:22&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-03-15 04:58:08&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-03-25 06:58:02&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-03-30 05:47:12&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-04-07 11:32:05&quot;,&quot;http_code&quot;:520},{&quot;date&quot;:&quot;2026-04-11 20:05:37&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-21 23:08:45&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 23:08:45&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:818,&quot;href&quot;:&quot;https:\/\/smartbear.com\/blog\/test-and-monitor\/c11-a-new-c-standard-aiming-at-safer-programming&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;https:\/\/smartbear.com\/blog\/test-and-monitor\/c11-a-new-c-standard-aiming-at-safer-programming\/&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_138" aria-describedby="caption-attachment-138" style="width: 300px" class="wp-caption alignleft"><img decoding="async" class="size-medium wp-image-138" src="https://learncgames.com/wp-content/uploads/2020/03/programming-942487_1280-300x212.jpg" alt="Programming image" width="300" height="212" srcset="https://learncgames.com/wp-content/uploads/2020/03/programming-942487_1280-300x212.jpg 300w, https://learncgames.com/wp-content/uploads/2020/03/programming-942487_1280-1024x723.jpg 1024w, https://learncgames.com/wp-content/uploads/2020/03/programming-942487_1280-768x542.jpg 768w, https://learncgames.com/wp-content/uploads/2020/03/programming-942487_1280.jpg 1280w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-138" 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=942487">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=942487">Pixabay</a></figcaption></figure>
<p>All C code I write in the books is currently to the C99 standard. All the compilers involved (Visual C++ on Windows and Clang on Ubuntu) support C99 but C11 support seems restricted to GCC and Clang.</p>
<p>Microsoft has traditionally supported C++ but their C support seems a bit grudging; realistically they don&#8217;t prioritise it which I can understand.</p>
<p>Given though that I&#8217;m not going to republish my first e-book for a while (I&#8217;d like to add a WebAssembly chapter or two first), I&#8217;m going to investigate whether it&#8217;s worth switching to C11 for the 2nd book. From what I&#8217;ve read all it needs is a flag to tll it to compile to C11 standards. This is for Clang.</p>
<p>-std=c11</p>
<p>But the other question is <strong>what will I gain by doing this</strong> and I can&#8217;t actually see there&#8217;s that much benefit.. I don&#8217;t need Unicode, I don&#8217;t think alignment will really make much difference. You can read about the C11 changes on <a href="https://en.wikichip.org/wiki/c/c11" target="_blank" rel="noopener noreferrer">WikiChip.</a></p>
<p>So I&#8217;ve made the decision. I&#8217;ll stick with C99 for now. But for an alternative view, I recommend <a href="https://smartbear.com/blog/test-and-monitor/c11-a-new-c-standard-aiming-at-safer-programming/" target="_blank" rel="noopener noreferrer">Danny Kalev&#8217;s 2012 article on C11</a>.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/im-considering-switching-to-c11/">I’m considering switching to C11</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">134</post-id>	</item>
	</channel>
</rss>
