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