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
-
22:36
Lauren Chen
1 hour agoIn Defense Of The Male Gaze? Women & The Pursuit Of Beauty
33112 -
1:12:53
Game On!
2 hours agoIt's Feel Good Friday! Get In Here! | Sports Afternoon Espresso Shot
6.53K10 -
1:09:19
Battleground with Sean Parnell
4 hours agoTarget: We the People
3.85K3 -
40:34
TudorDixon
5 hours agoEXCLUSIVE: Tudor's Interview with Lunden Roberts | The Tudor Dixon Podcast
3.62K2 -
1:01:21
Lee Camp
5 hours agoBREAKING: 175,000 Weed Convictions Pardoned + Abortion Pill Still Legal!
15K -
1:10:17
Twins Pod
1 day agoWhat The HELL is Going On With Infowars? | Twins Pod - Episode 18 - Chase Geiser
57.4K28 -
1:43:13
Revenge of the Cis
3 hours agoTribulation (Apocalypse III) Movie Riff
13.7K -
13:37
ErmzPlays
4 hours agoThe Witcher Has Finally Been Put Out Of Its Misery
13.5K6 -
1:01:30
The Quartering
5 hours agoTrump Raises Massive Funds, OnlyFans Backfire, Dana White Torches Cancel Culture
34.1K34 -
7:06
KFC Radio Clips
6 hours agoShane Gillis Tells Us His Worse First Date Story
35.4K8