Yes, I think you are correct.

You are essentially doing the same thing as the solution, but your approach is clearer than it.

You are essentially doing the same thing as the solution, but your approach is clearer than it.

Awesome q2a theme

+2 votes

Here I solved this in this way ..

**Since the virtual address space is 32-bit long and the first 8 bit specifies the first-level index. Next is the Offset of the page which is 12 from the first line. **

**Coincidently, 20 bit are still left here and it turns out to be the answer. So I wanted to ask is this the right way to solve the problem? I just tried thinking lil’ out of the box and thought this might be the answer. For reference, the answer to the solution is given**

.

Thanks in advance.

Is my approach wrong or correct?

9,211 questions

3,186 answers

14,687 comments

96,181 users