fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("6の文字コードは10進数=%d, 16進数=%x\n",'6','6');
  5. printf("Kの文字コードは10進数=%d, 16進数=%x\n",'K','K');
  6. printf("スペースの文字コードは10進数=%d, 16進数=%x\n",' ',' ');
  7.  
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
6の文字コードは10進数=54, 16進数=36
Kの文字コードは10進数=75, 16進数=4b
スペースの文字コードは10進数=32, 16進数=20