I've read lately that a 'char' is actually a small 'int' in C wich made a few questions pop in my head.
Does that mean i can assign 'char's to 'int's (and vice versa) without casting? i know it works , but i thought maybe its not recommended for some reason. And why shouldn't we use a 'char' to hold the return value of 'getchar()'? wouldn't it turn into a 'char' automatically anyway?
compilers tend to look up the ASCII table (in systems that use ASCII) , right? (just making sure)
Talking about tables , can this simple procedure determine wether a system is using ASCII or EBCDIC to represent characters? :
char ch = 110;
if(ch == 'n')
/* process characters as ASCII */
else if(ch == '>')
/* process characters as EBCDIC*/
appreciate your help