#include <stdio.h> //c example for pointer passing char* incp(char* str){ return ++str; } int main() { char* foo = "Hello World!"; foo = incp(foo); printf(foo); return 0; }