Monday, February 23, 2009

getchar() returns an int

The function getchar() is perhaps named in such a way as to be misleading to novice programmers. It does get a character, but it returns an int. Always assign the return value of getchar() to an int type variable. Read a little more about getchar()
Author : Rob

0 nhận xét:

Post a Comment