title: Accessing a specific character in a char pointers string in C
body: <p>I'm using <code>scanf</code> to read a string and put it into a <code>char*</code>.</p>
  
  <pre><code>scanf("%s", &amp;str);
  printf("%c",str);
  </code></pre>
  
  <p>It works fine but I don't know how to access a specific character in that string as I would with a char[]. I have been trying to increment the address:</p>
  
  <pre><code>str += 1;
  </code></pre>
  
  <p>I have been messing around a bit but all I get is the first character or segfaults or bus errors. Is it possible to work with that string without copying into a <code>char[]</code>?</p>