title: referencing an index value of a character in a pointer string in c
body: <p>Suppose I have something like this</p>
  
  <pre><code>int strLen;
  
  printf("Please enter a number: ");
  scanf("%d", &amp;strLen);
  
  char *myString;
  
  myString = (char*) malloc(strLen*sizeof(char));
  </code></pre>
  
  <p>then you fill string with something like "Hello World!" but now I want to just print out "World!"  Since my string is just a pointer reference, I can't call it out by indexes ie.</p>
  
  <pre><code>for(int i=6;i&lt;strLen;i++)
  {
      printf("%s", myString[i]);
  }
  // THIS IS AN INCORRECT WAY TO DO THIS
  </code></pre>
  
  <p>How could I refer to a specific character or even pass the array onto another function of the program if all I have is the array base pointer? Can I ever get the full functionality as if I declared it as a static array before compile time? </p>