I'm writing a program that when you subtract 3 from char 'a' you get the answer of char 'x'
What's the most practical way of doing this?
#include <stdio.h>
int main(void)
{
char letter = 'a'
int subtract_from_letter = 3;
/*Not sure what to do here...
char letter should now equal 'x'. If char letter was equal to 'd', it
would now equal 'a'.
*/
return 0;
}
Thanks everyone.