I am trying to mod a char in c by using the following:
int shift = 1;
c = (c + shift ) % 26;
printf("c= %c \n",c);
The variable c is a lowercase english character between a-z. When I try to print out the char c using the above code, I get the following:
c=
Could someone please tell me what I am doing wrong?