title: invalid conversion from char to const char
body: <p>so i get this conversion problem char to const char. how can i get this code to work?
  please, don't use pointers because im a newbie and i dont know anything about them... Thanks :)</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  char a[50];
  int power(char a) {
      int b;
      b=0;
      if(strlen(a)-b==0)
      return 0;
      else if(a[b]=='x'){
          return power(a,b+1)+1;
      }
      else{
          return power(a,b+1);
      }
      }
  
  }
  int main()
  {
    scanf("%s",&amp;a);
    printf("%d",power(a));
    return 0;
  }
  </code></pre>