Why do we have the second error? 1-
#include <iostream.h>
int main ()
{
char *p;
char *str="example";
p=str;
cout<<*p<<endl;
cout<<" string= "<<str;
return 0;
}
2-
#include <iostream.h>
int main ()
{
char *p;
char *str="example";
*p=str;
cout<<*p<<endl;
cout<<" string= "<<str;
return 0;
}
Cin means "C++ Input" if I am not mistaken. "Console Input" wouldn't make too much sense because cin isn't always reading from the console - cin may be just as well a ifstream or something the like.