fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. char *ptr;
  6. char Str[] = "abcdefg";
  7. ptr = Str;
  8. ptr += 4;
  9. cout << ptr;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5264KB
stdin
Standard input is empty
stdout
efg