The type of pBuffer var is char*& - reference to pointer to char. But references must be initialized in C++. So you can't compile the snippet above!
If you want to save an address of a char you need char* (pointer to char) variable. You can't save it as int* (pointer to int) because of it may be invalid pointer to int (int alignment).
Try to explain your need, please. The snippet above has no sense...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.