<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Austin Williams</title>
    <description>The latest articles on DEV Community by Austin Williams (@awilliams17).</description>
    <link>https://dev.to/awilliams17</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F81627%2F64f2d507-348b-4eae-806d-1d40fc986b05.png</url>
      <title>DEV Community: Austin Williams</title>
      <link>https://dev.to/awilliams17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/awilliams17"/>
    <language>en</language>
    <item>
      <title>A Quick and Dirty Primer to Pointers in C/C++</title>
      <dc:creator>Austin Williams</dc:creator>
      <pubDate>Thu, 16 Aug 2018 04:38:17 +0000</pubDate>
      <link>https://dev.to/awilliams17/a-quick-and-dirty-primer-to-pointers-in-cc-4oka</link>
      <guid>https://dev.to/awilliams17/a-quick-and-dirty-primer-to-pointers-in-cc-4oka</guid>
      <description>&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: This is not meant to teach you how everything works under the hood. This is just for understanding the syntax of pointers and for giving good intuition on how to read and write code which utilizes them.&lt;/p&gt;

&lt;p&gt;Anyways,&lt;br&gt;
I was going through some old notes and found a bunch of stuff I wrote about pointers and remembered I had an account on here and figured "why not throw something out there", so here ya go.&lt;/p&gt;
&lt;h2&gt;
  
  
  Terminology
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Pointer&lt;/strong&gt;: A variable which holds the address of another variable.&lt;br&gt;
&lt;strong&gt;Reference&lt;/strong&gt;: Setting a pointer to equal the address of a variable.&lt;br&gt;
&lt;strong&gt;De-Reference&lt;/strong&gt;: Reading or Writing to the value at the address pointed to by a pointer.&lt;/p&gt;
&lt;h2&gt;
  
  
  Examples
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Modifying a variable via pointer
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h3&gt;
  
  
  Passing by Reference vs Passing by Value
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h3&gt;
  
  
  Pointers to Pointers
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h3&gt;
  
  
  Pointer Arithmetic
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h3&gt;
  
  
  Quick Note About Multiple Pointers in One Line
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h2&gt;
  
  
  References Used
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://denniskubes.com/2017/01/24/the-5-minute-guide-to-c-pointers/"&gt;https://denniskubes.com/2017/01/24/the-5-minute-guide-to-c-pointers/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/14224831/meaning-of-referencing-and-dereferencing"&gt;https://stackoverflow.com/questions/14224831/meaning-of-referencing-and-dereferencing&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.studytonight.com/c/pointer-to-pointer.php"&gt;https://www.studytonight.com/c/pointer-to-pointer.php&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/11598361/why-a-pointer-1-add-4-actually"&gt;https://stackoverflow.com/questions/11598361/why-a-pointer-1-add-4-actually&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  In Closing
&lt;/h2&gt;

&lt;p&gt;There you go.&lt;br&gt;
This was pretty fun to write up. Maybe I'll do some more little&lt;br&gt;
primers like this. Hopefully someone found it useful, as&lt;br&gt;
this is all admittedly pretty elementary.&lt;/p&gt;

</description>
      <category>c</category>
      <category>pointers</category>
      <category>guide</category>
    </item>
  </channel>
</rss>
