When comparing pointers, types are not taken into account, so this is pointless.
Probably, the author simply included it for clarity, if this is an introductory book. If this is not an introductory book, then the author either has an odd coding style, or somehow thinks that it is more significant.
Corbin
source share