mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-11 07:41:18 +00:00
first
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"question": "What is the value of *y after the code on the left executes?",
|
||||
"answers": [
|
||||
"100",
|
||||
"a memory address pointing to x",
|
||||
"nil",
|
||||
"50"
|
||||
]
|
||||
}
|
||||
13
course/11-pointers/exercises/3-pointers_quiz/readme.md
Normal file
13
course/11-pointers/exercises/3-pointers_quiz/readme.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Pointers Quiz
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var x int = 50
|
||||
var y *int = &x
|
||||
*y = 100
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user