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 ツ
  • 47,427
  • 17
  • 69
  • 97
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95

0 Answers0