Go Programming: Understanding Common Job Interview Questions

preview_player
Показать описание
✅LEARN THE GO PROGRAMMING LANGUAGE - FULL COURSE

Go programming language, code samples and potential questions you might face in a job interview as a Go developer. value semantics and pointer semantics.

✅LEARN THE GO PROGRAMMING LANGUAGE - FULL COURSE

😃the github repo:
look in the "000-bm-interview-questions" folder 😃
Рекомендации по теме
Комментарии
Автор

I believe the explanation is pretty straightforward. When we start the loop, Go creates a `v` variable, which is reassigned with the value from the array/slice on each iteration. After this value is assigned, we change the value in the array/slice, but the `v` variable still holds the previous value. In the newer version of Go, it will create the `v` variable on each iteration, but the explanation remains the same.

Thank you for your series of videos. They are cool and in-depth.

fin
Автор

Can we consider "v" as a copy of the value of "sports" initialized before changing it ?

shurikend
Автор

Great video.. thanks! Just one quick question.. are you gonna add more videos to your Go course on udemy, or is it done?

nmlss
visit shbcf.ru