jweinst1
10/12/2017 - 5:52 PM

example using moving of pnter via a char**

example using moving of pnter via a char**

#include "stdio.h"

//c example that shows shifting using pnter of char pnter

int main(void) {
  const char* mes = "Hello World\n";
  char** pnt = &mes;
  printf(" is %s\n", *pnt);
  //is Hello World
  mes += 3;
  printf(" is %s\n", *pnt);  
  // is lo World
  return 0;
}