Browse Source

printmemory Change exercise

pull/793/head
OGordoo 3 years ago
parent
commit
aeb3673d7c
  1. 10
      subjects/printmemory/README.md

10
subjects/printmemory/README.md

@ -4,9 +4,9 @@
Write a function that takes `(arr [10]int)`, and displays the memory as in the example. Write a function that takes `(arr [10]int)`, and displays the memory as in the example.
After displaying the memory the function must display all the graphic characters. The non printable characters must be replaced by a dot. After displaying the memory the function must display all the ASCII graphic characters. The non printable characters must be replaced by a dot.
A graphic character is any character intended to be written, printed, or otherwise displayed in a form that can be read by humans. In other words, it is any encoded character that is associated with one or more glyphs. The ASCII graphic characters are any characters intended to be written, printed, or otherwise displayed in a form that can be read by humans, present on the ASCII encoding.
### Expected function ### Expected function
@ -32,9 +32,9 @@ And its output :
```console ```console
$ go run . | cat -e $ go run . | cat -e
6800 0000 6500 0000 6c00 0000 6c00 0000 $ 68 65 6c 6c$
6f00 0000 1000 0000 1500 0000 2a00 0000 $ 6f 10 15 2a$
0000 0000 0000 0000 $ 00 00$
hello..*..$ hello..*..$
$ $
``` ```

Loading…
Cancel
Save