title: Some Simple C++ Questions
body: <p>I don't know much about C++ (almost nothing), meaning I'm a noob at C++.</p>
  
  <p>1.</p>
  
  <p>Let's say you have this code:</p>
  
  <pre><code>typedef unsigned char u8;
  </code></pre>
  
  <p>With this code, does it mean that when you create a variable you can write u8 instead of unsigned char? Is an unsigned char a one byte value ranging from 0 to 255 or is it something else?</p>
  
  <p>2.</p>
  
  <p>Now I add something:</p>
  
  <pre><code>typdef unsigned char u8;
  
  u8 *someVariable;
  someVariable = new u8[12345];
  </code></pre>
  
  <p>What's the variable someVariable now? Is it a list/array with 12345 items where every entry is of type u8?</p>
  
  <p>3.
  Adding some more:</p>
  
  <pre><code>typedef unsigned char u8;
  
  u8 *someVariable;
  someVariable = new u8[12345];
  
  someVariable+=4;
  </code></pre>
  
  <p>What happens to someVariable now?
  Does it add 4 to every index in someVariable or only to a certain one? Or am I totally wrong with the list or array thing?</p>