Thank you

and i accept the second part of your answer, BUT the pointer isn't clear yet

if you try the given example you see :

a[0] ---> 'a'

p[0] ---> 'a' too. <\-- why not similar thing like ('*'p)[0] because p and a 
are different things

in GOLANG :

> var s string = "alma"

> p:=&s

// fmt.Println(&s)

// fmt.Println(p)

// fmt.Println(&p)

> fmt.Println(('*'p)[0]) -- this work, because this is logical

but p[0] -doesn't work , because p is the address of s, not s

Sorry for '*', but the editor give me when is try to submit , this : "Error: 
input(17, 18) Error: '*' expected"

Reply via email to