One thing has puzzled me a while ( well, more than one thing!).
If I have a function:
foo( char *s){
char *t = s;
......
s++; <<--- a few arbitrary times
}
Now...my question is this.
Is "t" independent of s, in the sense of:
1) Will it still point to the beginning of s, after s++ ?
2) I guess related to 1, if I now evaluate *t, will it be the first
character in s?
Thanks...that's it for today!!!
If I have a function:
foo( char *s){
char *t = s;
......
s++; <<--- a few arbitrary times
}
Now...my question is this.
Is "t" independent of s, in the sense of:
1) Will it still point to the beginning of s, after s++ ?
2) I guess related to 1, if I now evaluate *t, will it be the first
character in s?
Thanks...that's it for today!!!
Comment