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