fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char c;
  6. c = 'A';
  7. printf("The character code of %c is %d.\n", c, c);
  8. printf("The small letter of %c is %d.\n", c, c);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
The character code of A is 65.
The small letter of A is 65.