printf(“%s”, &b) in C prints target string. Why &b and not b?

后端 未结 0 749
滥情空心
滥情空心 2020-12-03 21:02

I define b as pointer to string:

char a[] = "hello";
char *b;
strcpy(&b, a);

So far so good (although I don\'t quite understand

相关标签:
回答
  • 消灭零回复
提交回复
热议问题