Can any body tell me ,why my last line prints the enteir string instead of an address
char str [20];
char *sp;
cin>>str;
sp=str;
cout<<&str[0];
Can any body tell me ,why my last line prints the enteir string instead of an address
char str [20];
char *sp;
cin>>str;
sp=str;
cout<<&str[0];