GO - Golang Online Test Practice Test
GO Structs and Methods 3
What is the correct way to call a method `Greet()` on a pointer to a struct `p *Person`?
Select your answer
A
p.Greet()
B
(*p).Greet() only — automatic dereferencing does not apply to methods
C
p->Greet()
D
Person.Greet(p)
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49