Normally in C++ (as my understanding), a pointer is a integer variable to store an address.. But we write .. #include <iostream> using namespace std; void LOG (const char* message){ cout << message << endl; } int main() { LOG ("Hello World!"); } how this is possible (assigning string value to a pointer)?
6/6/2020 2:17:07 PM
Kumudu_Mohottala4 Answers
New Answerrudolph flash, Martin Taylor my problem is value is assigned without any dereference.. am I wrong?
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message