You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
OGordoo aeb3673d7c printmemory Change exercise 3 years ago
..
README.md printmemory Change exercise 3 years ago

README.md

printmemory

Instructions

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 ASCII graphic characters. The non printable characters must be replaced by a dot.

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

func PrintMemory(arr [10]int) {

}

Usage

Here is a possible program to test your function :

package main

func main() {
	PrintMemory([10]int{104, 101, 108, 108, 111, 16, 21, 42})
}

And its output :

$ go run . | cat -e
68 65 6c 6c$
6f 10 15 2a$
00 00$
hello..*..$
$