Post

GoLangGoLang

c
cayrel rings

Posted on 18th April 2024|100 views

0
votes

Golang Value Semantics Vs Pointer Semantics

What is the difference between golang value semantics and pointer semantics?

Answers
P
sreelu 123

Posted on 18th April 2024

Whenever you call a function or else a method also you pass parameters over it, a copy is created of the values, including the function can simply obtain these copies. Pointer semantics implies that even though we transfer something "by value", the callee can still change the "original" value, simply as if we would have transferred a pointer to that.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos