fork download
  1. char* myFunc (char *ptr)
  2. {
  3. ptr += 2;
  4. return (ptr);
  5. }
  6. int main()
  7. {
  8. char *a, *b;
  9. a = "PINKY";
  10. b = myFunc (a);
  11. printf ("b = %s \n", b);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
b = NKY