title: Abnormal beheviour of sqrt() in c while using in printf()
body: <p>I am new to programming. I was finding a square root of a number using <code>sqrt()</code>function in c. `    </p>
  
  <pre><code>        scanf("%d", &amp;n);
  
          printf("%d\n", sqrt(n));
      }
  
      return 0;
  }
  </code></pre>
  
  <p>When I enter a value of <code>n = 5</code>, I got some negative large number. Can anyone explain, please?</p>