fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("1の文字コードは10進数=%d, 16進数=%x\n",'3','3');
  5. printf("Aの文字コードは10進数=%d, 16進数=%x\n",'S','S');
  6. printf("スペースの文字コードは10進数=%d, 16進数=%x\n",'[','[');
  7.  
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
1の文字コードは10進数=51, 16進数=33
Aの文字コードは10進数=83, 16進数=53
スペースの文字コードは10進数=91, 16進数=5b