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