full form of "getch" is get a character. So it returns only one value and that a char value. By standards it cannot return int. value but some compilers don't give any error or warning and sometime it also works fine. But you should try not to go for it. You may opt for typecasting afterwards, if required results needs to be in int.
By which standards can it not return an int? getch() is not a standard function to begin with...
--
Brett McCoy: Programmer by Day, Guitarist by Night
http://www.alhazred.com
http://www.cassandrasyndrome.com
http://www.revelmoon.com
__._,_.___
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
SPONSORED LINKS
| C and c++ | Computer programming languages | Java programming language |
| Basic programming language | Programming languages |
YAHOO! GROUPS LINKS
- Visit your group "c-prog" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
