What is the meaning of '*' and '&'?

前端 未结 5 1059
情歌与酒
情歌与酒 2021-01-30 09:07

I am doing the http://tour.golang.org/. Could anyone explain me lines 1,3,5 and 7 this function especially what \'*\' and \'&\' do? I mean by mentioning the

5条回答
  •  隐瞒了意图╮
    2021-01-30 09:47

    & Operator gets the memory address where as * Opeartor holds the memory address of particular variable.

提交回复
热议问题