title: Error: invalid operands of types 'const char [3]' and 'int*' to binary 'operator*'
body: <p>So in my program, I am supposed to have the user input a base, up to base 32, and a random decimal value to be converted. So if the user entered 5 and 10, it would have to print to the screen 10 in base 5, 4, 3, and 2. However, this is my first time using dynamic allocation so I'm getting weird errors, and this is one I can't fix. (d stands for decimal value, b stands for base, arrayPtr is my dynamic allocation array)</p>
  
  <pre><code>        while(d != 0 &amp;&amp; d&gt;b)
      {
          *arrayPtr = digits[(d%b)];
          d = d/b;
          arrayPtr++;
          n++;
      }
  
      //print statement to read array backwards to give correct output
      for (int i=n-1; i&gt;=0; i--)
      {
          cout&lt;&lt;"Base "&lt;&lt;i &lt;&lt;": "*(arrayPtr+(i*sizeof(*arrayPtr)))&lt;&lt;" ";    }
      b--;
      cout&lt;&lt;endl;
  </code></pre>
  
  <p>I am getting an error(invalid operands of types 'const char [3]' and 'int*' to binary 'operator*') on the line that says: 
  cout&lt;&lt;"Base "&lt;(arrayPtr+(isizeof(*arrayPtr)))&lt;&lt;" ";
  Can someone help me understand why this is happening?</p>