<?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>function pointers | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/function-pointers/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, 29 Jan 2021 20:36:26 +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>function pointers | 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>C Tutorial twelve on function pointers published</title>
		<link>https://learncgames.com/c-tutorial-twelve-on-function-pointers-published/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-tutorial-twelve-on-function-pointers-published</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Mon, 01 Feb 2021 00:00:22 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[pointers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[function pointers]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2572</guid>

					<description><![CDATA[<p>While function pointers are important. I don&#8217;t think they&#8217;re quite as important as pointers. C would just not be C without pointers. There are so many things that you would not be able to do if the language lacked pointers. Things like most data structures (try doing a linked list without pointers!) . However function [&#8230;]</p>
The post <a href="https://learncgames.com/c-tutorial-twelve-on-function-pointers-published/">C Tutorial twelve on function pointers published</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;:210,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/pencilparker-7519217\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3045123&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:211,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3045123&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 12:45:25&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 15:44:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-15 01:01:06&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:56:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-02 21:00:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-10 20:37:43&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 05:36:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 21:49:05&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-01 14:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 19:10:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-11 04:38:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 09:29:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-19 22:53:09&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-19 22:53:09&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_2573" aria-describedby="caption-attachment-2573" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-2573" src="https://learncgames.com/wp-content/uploads/2021/01/desktop-3045123_640-300x271.jpg" alt="Lots of pointers" width="300" height="271" srcset="https://learncgames.com/wp-content/uploads/2021/01/desktop-3045123_640-300x271.jpg 300w, https://learncgames.com/wp-content/uploads/2021/01/desktop-3045123_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-2573" class="wp-caption-text">Image by <a href="https://pixabay.com/users/pencilparker-7519217/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3045123">pencil parker</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3045123">Pixabay</a></figcaption></figure>
<p>While function pointers are important. I don&#8217;t think they&#8217;re quite as important as pointers. C would just not be C without pointers. There are so many things that you would not be able to do if the language lacked pointers. Things like most data structures (<em>try doing a linked list without pointers!</em>) .</p>
<p>However function pointers give additional flexibility. You can pass them as parameters in functions and store them in variables.</p>
<p>These are the earlier tutorials on pointers:</p>
<ul>
<li><a title="Link to tutorial six on pointers." href="https://learncgames.com/tutorial-six-about-pointers/" target="_blank" rel="nofollow noopener noreferrer">A look at pointers.</a> Intro to pointers</li>
<li><a title="Link to tutorial seven on c strings and pointers" href="https://learncgames.com/tutorial-seven-about-pointers-and-strings/" target="_blank" rel="nofollow noopener noreferrer">Pointers and c-strings.</a> A string in C is actually a pointer to a block of characters terminated by a 0.</li>
<li><a title="Link to tutorial eight on pointers and linked lists" href="https://learncgames.com/tutorial-eight-about-pointer-variables/" target="_blank" rel="nofollow noopener noreferrer">Pointers and linked lists.</a>  A way of storing data in a variable size structure.</li>
</ul>
<p>And this is the new one:</p>
<ul>
<li><a title="Link to tutorial twelve on function pointers" href="https://learncgames.com/tutorials/tutorial-twelve-a-look-at-function-pointers/" target="_blank" rel="nofollow noopener">A look at function pointers</a>. How to deine and use them,</li>
</ul>
<p>&nbsp;</p>The post <a href="https://learncgames.com/c-tutorial-twelve-on-function-pointers-published/">C Tutorial twelve on function pointers published</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">2572</post-id>	</item>
		<item>
		<title>Function pointers in C and understanding them</title>
		<link>https://learncgames.com/function-pointers-in-c-and-understanding-them/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=function-pointers-in-c-and-understanding-them</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Mon, 01 Jun 2020 23:00:39 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[function pointers]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=722</guid>

					<description><![CDATA[<p>In theory function pointers are straightforward. You have a pointer which is assigned to a function. You then make a call indirectly to that function. But, it&#8217;s when the function has parameters passed in and returns things that the definition  gets messy. Reading them is hard enough but trying to get it right when you [&#8230;]</p>
The post <a href="https://learncgames.com/function-pointers-in-c-and-understanding-them/">Function pointers in C and understanding them</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;:700,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/Joshua_seajw92-6153261\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3986758&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:701,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3986758&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 17:43:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-28 06:34:24&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-28 06:34:24&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:157,&quot;href&quot;:&quot;https:\/\/www.reddit.com\/r\/C_Programming&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:702,&quot;href&quot;:&quot;http:\/\/cseweb.ucsd.edu\/~ricko\/rt_lt.rule.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260204160230\/https:\/\/cseweb.ucsd.edu\/~ricko\/rt_lt.rule.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:44:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 04:11:53&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-03-28 06:34:25&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-28 06:34:25&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_723" aria-describedby="caption-attachment-723" style="width: 300px" class="wp-caption alignleft"><img decoding="async" class="size-medium wp-image-723" src="https://learncgames.com/wp-content/uploads/2020/05/math-3986758_640-300x168.jpg" alt="function pointers" width="300" height="168" srcset="https://learncgames.com/wp-content/uploads/2020/05/math-3986758_640-300x168.jpg 300w, https://learncgames.com/wp-content/uploads/2020/05/math-3986758_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-723" class="wp-caption-text">Image by <a href="https://pixabay.com/users/Joshua_seajw92-6153261/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3986758">준원 서</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3986758">Pixabay</a></figcaption></figure>
<p>In theory function pointers are straightforward. You have a pointer which is assigned to a function. You then make a call indirectly to that function. But, it&#8217;s when the function has parameters passed in and returns things that the definition  gets messy. Reading them is hard enough but trying to get it right when you are writing them can waste a lot of time.</p>
<p>Most days I read various websites and one of those is the <a title="Link to C Programming on reddit.com" href="https://www.reddit.com/r/C_Programming/" target="_blank" rel="nofollow noopener noreferrer">C programming</a> forum on reddit.com.  This has either articles or links to articles an one that was recently posted is about <a title="Link to article about function pointers" href="http://cseweb.ucsd.edu/~ricko/rt_lt.rule.html" target="_blank" rel="noopener noreferrer">C function pointers</a> and includes a very extensive list of definitions and what they mean with nearly 40 different examples of both legal and not legal examples. The examples are handy; just make sure you don&#8217;t use an illegal one. It won&#8217;t compile!</p>The post <a href="https://learncgames.com/function-pointers-in-c-and-understanding-them/">Function pointers in C and understanding them</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">722</post-id>	</item>
	</channel>
</rss>
