0

This is my attempt to build a simple simulation of a direct mapped cache, I'm new to C and trying to learn some low level concepts. I had some difficulties with the design, because I'm used to program in a object oriented style.
#include <stdio.h>
int create_mask(int num_of_bits, int pos) {
...