title: format specifies type 'char *' but the argument has type 'char' [-Wformat]
body: <p>I am attempting to check and output the command line arguments given for a specific program "format.c" when called from the terminal. I am getting the following error and I do not understand what it is telling me.
  error:
  format specifies type 'char *' but the
        argument has type 'char' [-Wformat]
  here is my code thus far:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;ctype.h&gt;
  #include &lt;stdlib.h&gt;
  
  int printArguments( int argc, char **argv )
  {
      int i;
      printf( "Total number of arguments: %d", argc );
      for( i = 0; i &lt;= argc; i++ ){
          printf( "argv[%d] = %s\n", i, *argv[i] );
      }
      return 0;
  }
  
  int main ( int argc, char **argv )
  {
      if( argc != 3 ){
          puts( "You failed to enter the correct number of arguments." );
          printf( "You entered: \nargv[0] = %s\nargv[1] = %s\nargv[2] = %s\n",
                 argv[0], argv[1], argv[2] );
          puts( "Argument format should be, \"./format (arg1 = int value)"
               "(arg2 = file name)\"\n" );
          return 0;
      }
      if( atoi(argv[1]) &lt; 25 ){
          printf( "\nargv[1] = %d\nYou entered a value too small for the format\n",
          atoi(argv[1]) );
          return 0;
      }
      if( atoi(argv[1]) &gt; 100 ){
          printf( "\nargv[1] = %d\nYou entered a value too large for the           format\n",
          atoi(argv[1]) );
          return 0;
      }
  
      printArguments( argc, **argv );
  
      return 0;
  } /*end of main */
  </code></pre>