title: How to change character in char array
body: <p>My function gets a char array as input. If it includes character <code>e</code> it changes it with <code>a</code> and returns the new char array. Here is my code:</p>
  
  <pre><code>char echanger(char word[]){
  
      int total = 0;
      int i;
      char final[5];
  
      for(i=0;i&lt;5;i++){
          if(word[i]=='e'){
              final[i] == 'a';
          }
          else{
              final[i] == word[i];
          }
      }
  
      return final;
  }
  </code></pre>
  
  <p>I call it in in <code>main()</code> function like this:</p>
  
  <pre><code>int main(){
  
      char a[] = "helle";
      printf("new string is: %d \n",echanger(a));
  
  }
  </code></pre>
  
  <p>it gives me this output:</p>
  
  <pre><code>new string is: -48
  </code></pre>
  
  <p>what I'm missing in here?</p>