fork download
  1.  
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char myword[] = { 'H', 'e', 'l', 'l', 'o', '\0' };
  9. char str[] = {'M','i','k','e',' ','s','m','i','t','h','\0'};
  10. char str2[] = "Dragic\0";
  11. char* pname=&str[0];
  12. char* pteam=&str2[0];
  13.  
  14. printf("%s\n", myword);
  15. printf("%s\n", str);
  16. printf("%s\n", str2);
  17. printf("%s\n", pname);
  18. printf("%s\n", pteam);
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Hello
Mike smith
Dragic
Mike smith
Dragic