I have a basic questions about char and int...what happens when I assign an int to a char like thischar ch = 1; do i get the character 1 or the equivalent to ASCII code 1...and when I do this char ch = 'A', do i have the character A? and when char ch= 3 + 'A'do I get D? I have an idea of everything but I always get confused....someone could give a general explanation to deduce by myself each time this happens??
The best idea is to try it out and google an ASCII chart.
char += '1' will add 49 to whatever the earlier value was so char '1' += '1' will be ascii 98. Keep in mind to their is a limit/set range depending on whether its an extended table or not