Why is getchar() function in C an Integer?
<p>Up to now, i have found out that, we use getchar() as int because at EOF this function returns -1. I was wondering can't <strong>char</strong> hold -1 ? i think it can,because it can also range from -128 to 127.</p>

<p>I searched through the top list of google, but the answer i got didn't satisfy me.</p>