&temp and *temp in c++
05:50 09 Feb 2020

I am new to C++ and trying to convert string into integer. I was using atoi but there are some restrictions so I start using strtol which works perfectly. However, I would like to learn more on *temp and &temp (I have google and learn that it is a temporary space for storage) but would like to learn the difference and when to use which.

char *temp;
int m = strtol (argv[1],&temp,10);
if (*temp != '\0')
c++ pointers