title: Data type issue renders value to not be "assignable." Possible pointer issue?
body: <p>I can't waste another day on this confounded error.  Can you please help?  Here is the code.  Some details might be astray, however, I cant compile until this error is resolved.</p>
  
  <pre><code>int main(int argc, string argv[])
  {
      string note = argv[1];
  
      int frequency(string note);
      int duration(string fraction);
  
      if (argc == 2)
      {
         // create new string with last 3 chars in string note
  
          string fraction = note + strlen(note) - 3;
          printf("(%.3s)\n", fraction);
  
          // transform char into integer.. poof!
  
          int x = atoi(&amp;fraction[0]);
          int y = atoi(&amp;fraction[-1]);
  
         // calculate integer from x &amp; y values
  
          duration = x * (8 / y);
          printf("%i\n", duration);
  
  
      }
      else
      {
          printf("Two (2) arguments!\n");
          return 1;
      }
  
  
  }
  </code></pre>
  
  <p>AND THE ERROR MESSAGEs..</p>
  
  <pre><code>duration.c:61:18: error: non-object type 'int (string)' (aka 'int (char *)') is not assignable
          duration = x * (8 / y);
  
          ~~~~~~~~ ^
  duration.c:62:24: error: format specifies type 'int' but the argument has type 'int (*)(string)' (aka 'int (*)(char *)') [-Werror,-Wformat]
          printf("%i\n", duration);
  </code></pre>