fork download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main() {
  5. const char* string = "Hello World";
  6.  
  7. for (size_t i = 0; i < strlen(string); i++)
  8. printf("%c = 0x%02x (%d)\n", string[i], string[i], string[i]);
  9. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
H = 0x48 (72)
e = 0x65 (101)
l = 0x6c (108)
l = 0x6c (108)
o = 0x6f (111)
  = 0x20 (32)
W = 0x57 (87)
o = 0x6f (111)
r = 0x72 (114)
l = 0x6c (108)
d = 0x64 (100)