M
mdh
May I just confirm my understanding that:
If a pointer is passed as an argument to a function, manipulation of
the function pointer ( eg pointer ++ till some condition....) will not
effect the value of the calling pointer?
So;
myf(p) /* p is ptr to char) */
void myf( char *q){
while (...)
*q++;
}
leaves p unchanged?
If a pointer is passed as an argument to a function, manipulation of
the function pointer ( eg pointer ++ till some condition....) will not
effect the value of the calling pointer?
So;
myf(p) /* p is ptr to char) */
void myf( char *q){
while (...)
*q++;
}
leaves p unchanged?