Premium Only Content

Cap. 3 – Exercícios: Nível #1 – 5
6.486 visualizações 1 de mai. de 2020 Aprenda Go 🇧🇷
- Utilizando a solução do exercício anterior:
1. Em package-level scope, utilizando a palavra-chave var, crie uma variável com o identificador "y". O tipo desta variável deve ser o tipo subjacente do tipo que você criou no exercício anterior.
2. Na função main:
1. Isto já deve estar feito:
1. Demonstre o valor da variável "x"
2. Demonstre o tipo da variável "x"
3. Atribua 42 à variável "x" utilizando o operador "="
4. Demonstre o valor da variável "x"
2. Agora faça tambem:
1. Utilize conversão para transformar o tipo do valor da variável "x" em seu tipo subjacente e, utilizando o operador "=", atribua o valor de "x" a "y"
2. Demonstre o valor de "y"
3. Demonstre o tipo de "y"
- Solução: https://play.golang.org/p/uq81T_fasP
-
LIVE
Game On!
17 hours ago $1.74 earnedCollege Football Is BACK! Week 1 Preview!
5,545 watching -
LIVE
The Bubba Army
22 hours agoMinneapolis Shooter Story Unfolds! - Bubba the Love Sponge® Show | 8/28/25
2,706 watching -
LIVE
JuicyJohns
16 minutes ago🟢#1 REBIRTH PLAYER 10.2+ KD🟢
47 watching -
16:58
marcushouse
13 hours ago $1.62 earnedSpaceX Starship Flight 10: What Really Happened! 🚀
37.6K11 -
3:47
Blackstone Griddles
13 hours agoCampground Meal Planning on the Blackstone Camping Griddle
10K1 -
28:13
Her Patriot Voice
13 hours ago $1.17 earnedIs Flag Burning Free Speech?
11K13 -
17:51
TheRoyaltyAutoService
16 hours ago $0.17 earnedIs Flat Rate Ruining The Auto Repair Industry?!
12.3K5 -
LIVE
BEK TV
23 hours agoTrent Loos in the Morning - 8/28/2025
211 watching -
26:00
DeVory Darkins
1 day ago $11.62 earnedDemocrat Mayor HUMILIATES himself during painful interview as Trump makes SHOCKING Announcement
44.4K97 -
22:14
Ohio State Football and Recruiting at Buckeye Huddle
1 day agoOhio State Football: Everything Steve Sarkisian Said About the Buckeyes This Week
29.2K