I've read lately that a 'char' is actually a small 'int' in C wich made a few questions pop in my head.
Q1 :
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?
Q2 :
compilers tend to look up the ASCII table (in systems that use ASCII) , right? (just making sure)
Q3 :
Talking about tables , can this simple procedure determine wether a system is using ASCII or EBCDIC to represent characters? :
Code:char ch = 110; if(ch == 'n') /* process characters as ASCII */ else if(ch == '>') /* process characters as EBCDIC*/
appreciate your help