The value of addr after the last entry is written should be passed to a static variable to be returned as is done in put and get