Hi i have an array
static int virtual_addr[10]=
{8196,34893,38583,22883,61843,43532,333,8448,2334,9492};
that i am trying to pass to a function
int determinePage(int virtual_addr){
int page_num;
int page_size = 4096;
page_num = floor(virtual_addr/page_size);
return page_num;
}
however I am getting errors.Any help would be appreciated