C++
Programming and Technical
What is the difference between const char *myPointer and char *const myPointer?
Read Solution (Total 2)
-
- first one is a constant pointer to non constant data, & 2nd one is non constant pointer to constant data
- 10 years agoHelpfull: Yes(1) No(1)
- 1st one suggests pointer to a constant character variable,,2nd one says constant pointer to a charcter type variable ,, so the value changes in constant pointer will lead to compilatn erroe and 1st one wont cause any error ...
- 9 years agoHelpfull: Yes(0) No(1)
C++ Other Question