fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char ch = 'z';
  5. int key = 10;
  6. if (ch >= 'a' && ch <= 'z'){
  7. ch = ch + key;
  8. if (ch > 'z') {
  9. ch = ch - 'z' + 'a' - 1;
  10. }
  11. printf("%c\n", ch);
  12. printf("%d\n", ch);
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4540KB
stdin
Standard input is empty
stdout
�
-124