Hi
This seems very easy and beginner question.But really i can't figure out it.
Why can not cin allocate ch pointer but scanf can allocate it.What is happening?It gives run-time error.Code:char *ch cout << "Enter name"; scanf("%s",&ch); cin >> ch;
I am looking for your answers.