fork download
  1. #include <stdio.h>
  2. #define SUB 2
  3. #define NUM 5
  4.  
  5. int main(void)
  6. {
  7. char str[6];
  8.  
  9. str[0]='H';
  10. str[1]='e';
  11. str[2]='l';
  12. str[3]='l';
  13. str[4]='o';
  14. str[5]='\0';
  15.  
  16. printf("%sは文字列です。\n", str);
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
Helloは文字列です。