Answers

Question and Answer:

  Home  C++ References

⟩ What is output of program? #include <iostream> using namespace std; void print (char * a) { cout << a << endl; } int main () { const char * a = "Hello world"; print(const_cast<char *> (a) ); return 0; } a) Hello world b) Hello c) world d) compile time error

a) Hello world

 193 views

More Questions for you: