[Solved] How a pointer to a string works in a function?
Snippet 1 char a[200],*p; Defined a block of 200 characters ,a, and a pointer, p, to a block of one or more characters. gets(a); // cin.get(a,200); Read some user input into memory block a p=a; Points p at block a. p can now be used as a reference to the same thing as a strcpy(p,p+1); … Read more