so, lets say that a char contains the letter "a":
int main() {
int i=8;
char test2[2]="a"+i;
return 0;
}
I just want to add 5 to the value of that letter's ASCII value. So that test2 would contain "h", since ASCII value of h a ASCII value of a+8.
Is there a simple way to do this? I have tried googling this, and I would think this is a basic thing to do, but I am clearly missing an easy way to do this. Would appreciate any help.