GOLANGTESTS Telegram 178
Что выведет код?

numbers := []*int{}

for _, value := range []int{1, 2, 3, 4, 5} {
numbers = append(numbers, &value)
}

for _, value := range numbers {
fmt.Println(*value)
}

Запустить и посмотреть объяснение

@golangtests
👍7



tgoop.com/golangtests/178
Create:
Last Update:

Что выведет код?

numbers := []*int{}

for _, value := range []int{1, 2, 3, 4, 5} {
numbers = append(numbers, &value)
}

for _, value := range numbers {
fmt.Println(*value)
}

Запустить и посмотреть объяснение

@golangtests

BY Go tests




Share with your friend now:
tgoop.com/golangtests/178

View MORE
Open in Telegram


Telegram News

Date: |

“[The defendant] could not shift his criminal liability,” Hui said. Public channels are public to the internet, regardless of whether or not they are subscribed. A public channel is displayed in search results and has a short address (link). The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. Ng Man-ho, a 27-year-old computer technician, was convicted last month of seven counts of incitement charges after he made use of the 100,000-member Chinese-language channel that he runs and manages to post "seditious messages," which had been shut down since August 2020. ZDNET RECOMMENDS
from us


Telegram Go tests
FROM American