|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
|
|
Write a function that takes `(arr [10]int, size int)`, and displays the memory as in the example. |
|
|
|
|
|
|
|
|
|
Your function must be declared as follows : |
|
|
|
|
### Expected function |
|
|
|
|
|
|
|
|
|
```go |
|
|
|
|
func PrintMemory(arr [10]int, size int) { |
|
|
|
@ -12,9 +12,9 @@ func PrintMemory(arr [10]int, size int) {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### Usege |
|
|
|
|
### Usage |
|
|
|
|
|
|
|
|
|
Here is a possible program to test your function and it's output : |
|
|
|
|
Here is a possible program to test your function : |
|
|
|
|
|
|
|
|
|
```go |
|
|
|
|
func main() { |
|
|
|
@ -23,6 +23,8 @@ func main() {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
And its output : |
|
|
|
|
|
|
|
|
|
```console |
|
|
|
|
student@ubuntu:~/piscine/test$ go build |
|
|
|
|
student@ubuntu:~/piscine/test$ ./test |
|
|
|
|