title: String comparison C - strcmp()
body: <p>I'm trying to compare two strings, but I fail achieving that. Why?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(){
      float a = 1231.23123;
      char b[32];
      sprintf(b, "%f", a);
      printf("%s\n", b);
      char c[32] = "1231.23123";
      if (strcmp(c, b) == 0){
          printf("SUCCES\n");
      }
      else{
          printf("DIFFER\n");
      }
      return 0;
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>1231.231201
  DIFFER
  </code></pre>