When declaring a function argument as a pointer, what is the difference between “*” and “&”?

前端 未结 0 1120
说谎
说谎 2020-11-28 01:40

What is the difference between this argument bar...

void foo(int* bar)
{
}

... and this argument bar?

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