<?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>char | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/char/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>Wed, 30 Nov 2022 08:41:04 +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>char | 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>I know a fair bit of C but</title>
		<link>https://learncgames.com/i-know-a-fair-bit-of-c-but/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-know-a-fair-bit-of-c-but</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 30 Nov 2022 09:00:00 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[char]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3104</guid>

					<description><![CDATA[<p>There are a lot of subtleties that you only pick up with experience.  I was pleased to find a blog entry by a bloke Tom M on &#8220;Everything I wish I knew when learning C&#8221; which is well worth a read. I&#8217;m not going to copy anything from it except for this little snippet below [&#8230;]</p>
The post <a href="https://learncgames.com/i-know-a-fair-bit-of-c-but/">I know a fair bit of C but</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;:41,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/gdj-1086657\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5569119&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205100514\/https:\/\/pixabay.com\/users\/gdj-1086657\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:14:58&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-18 07:39:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-25 03:19:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 04:10:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-05 20:24:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 10:11:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 18:22:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-26 07:42:43&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-31 21:00:56&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 21:00:56&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:42,&quot;href&quot;:&quot;https:\/\/pixabay.com\/\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5569119&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 11:15:00&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-18 07:39:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-25 03:19:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 04:10:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-05 20:24:02&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 10:11:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 18:22:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-26 07:42:43&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-31 21:00:54&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 21:00:54&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:43,&quot;href&quot;:&quot;https:\/\/tmewett.com\/c-tips&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251105004532\/https:\/\/tmewett.com\/c-tips\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:15:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 07:39:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-25 03:19:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 04:10:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 20:24:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 10:11:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 18:22:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-26 07:42:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 21:00:55&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 21:00:55&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:44,&quot;href&quot;:&quot;https:\/\/stackoverflow.com\/questions\/9727465\/will-a-char-always-always-always-have-8-bits#:~:text=that%20a%20char%20is%20represented,of%20RAM%20(%2B%20swap%20space).&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260129061624\/https:\/\/stackoverflow.com\/questions\/9727465\/will-a-char-always-always-always-have-8-bits&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:15:39&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-06 11:15:39&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_3105" aria-describedby="caption-attachment-3105" style="width: 264px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-3105" src="https://learncgames.com/wp-content/uploads/2022/11/letter-c-264x300.png" alt="The letter C in fancy script" width="264" height="300" srcset="https://learncgames.com/wp-content/uploads/2022/11/letter-c-264x300.png 264w, https://learncgames.com/wp-content/uploads/2022/11/letter-c.png 563w" sizes="(max-width: 264px) 100vw, 264px" /><figcaption id="caption-attachment-3105" class="wp-caption-text">Image by <a href="https://pixabay.com/users/gdj-1086657/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5569119">Gordon Johnson</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5569119">Pixabay</a></figcaption></figure>
<p>There are a lot of subtleties that you only pick up with experience.  I was pleased to find a <a title="Link to Everything I wish I knew when learning C" href="https://tmewett.com/c-tips/" target="_blank" rel="noopener">blog entry</a> by a bloke Tom M on &#8220;Everything I wish I knew when learning C&#8221; which is well worth a read.</p>
<p>I&#8217;m not going to copy anything from it except for this little snippet below one below. For the rest, you&#8217;ll have to read his blog post.</p>
<h3 id="char-signedness"><em>char signedness</em></h3>
<p><em>All other integer types default to signed, but bare <code class="" data-line="">char</code> can be signed or unsigned, depending on the platform.</em></p>
<p>As said char is an integer type but unless you are doing stuff like ++ or &#8212; when its value can overflow according to being signed or unsigned, it&#8217;s not really a problem. And unless you are writing code that runs on wildly differing platforms, you can probably safely assume that a char is the same as a byte and has 8 bits. On those other platforms, I&#8217;d suggest you read the answers to <a title="Link to Stackovrflow question Will a &#96;char&#96; always-always-always have 8 bits?" href="https://stackoverflow.com/questions/9727465/will-a-char-always-always-always-have-8-bits#:~:text=that%20a%20char%20is%20represented,of%20RAM%20(%2B%20swap%20space)." target="_blank" rel="nofollow noopener">this Stackoverflow</a> question.</p>The post <a href="https://learncgames.com/i-know-a-fair-bit-of-c-but/">I know a fair bit of C but</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">3104</post-id>	</item>
	</channel>
</rss>
