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];
ΦXocę 웃 Пepeúpa ツ
  • 45,713
  • 17
  • 64
  • 91
Kuttan Sujith
  • 7,811
  • 18
  • 63
  • 92

0 Answers0