Then array name and the parameter passed to the function can not be same.
It should be like.
And function call must be like
Regards
Dheeraj Joshi
It should be like.
Code:
int determinePage(int virtual_addr_i) // Note the name of the variable is not same as array name { //Some stuff goes here }
Code:
for (int i=0; i<10; i++) { cout <<determinePage(virtual_addr[i])<< endl; }
Dheeraj Joshi
Comment