I know a function in C can have void,int or float return types.But can it have "char" return type? If not,then if we return a character, for example return('*') then is the ASCII value of the character returned?And also, if not, then is the ASCII of the character accepted by getch() returned as an integer or it returns something else?I mean, does it return 0 or 1 as error-free or non error-free execution of getch()?
And if a function in C can have char return type, then how come getch() has integer return type?