logo-MindMajix
PostGoLangGoLang
c
cayrel rings

Posted on 21st June 2024|102 views

0
votes

Golang Value Semantics Vs Pointer Semantics

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

1 answers
Answers
P
sreelu 123

Posted on 21st June 2024| views

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
Name
Course *
Email *
Phone Number