Assignments

Assignment 1

Extra resources

Assignment 2

Extra resources

Assignment 3

Extra resources

Initializing an array with a fixed value

The below code will initialize the whole of array with the value 0.

unsigned char array[SIZE] = {0};

Unfortunately, I was mistaken, and this only works for zero! Setting other values will only set that value for the first element and the rest will still be zero.

If you want to set a value on the whole array, try using memset:

memset(array, 0, SIZE);

Assignment 4

Extra resources

Thom’s hacking utilities

These scripts can help you do some menial stuff, like printing addresses in little-endian order, as demonstrated in the lecture. Follow the instructions in the README.md to install them.

Previous
Next