How to solve | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

How to solve

I have to question... Please help me. I want to know how to solve this kind of question.. And answer for that?? If the address of a certain 4 byte word organized physical memory is 0x34AB, what is the address of the next word in the sequence ??

14th Mar 2018, 7:23 AM
Dilhara Abeysinghe
Dilhara Abeysinghe - avatar
4 Answers
+ 15
answer is 0x34AC.. but i don't know how to get this answer.. any one can help me.. plz...
18th Apr 2018, 8:10 AM
Dilhara Abeysinghe
Dilhara Abeysinghe - avatar
+ 12
@shobhit @Jay Matthews Thank you.... but, i cant understand that , how to solve... please give me some instructions about that... how to organize physical memory?? what is the address & word??
15th Mar 2018, 7:36 AM
Dilhara Abeysinghe
Dilhara Abeysinghe - avatar
+ 7
just add 4 to 0x34AB that will be 0x34AF.
14th Mar 2018, 7:46 AM
shobhit
shobhit - avatar
+ 2
the number 0x34AB is in hexadecimal. We know this because 0x usually in computers denotes that the number is hexadecimal. You can check it by converting 0x34AB to decimal add 4 to it, you will get 0x34AF. Address is where a piece of data is stored. You may know about pointers which are used to store address. So int is of 4bytes, this means that when program will run 4bytes of data will be kept and all the instruction will be performed (as you may have defined in your program).
15th Mar 2018, 8:06 AM
shobhit
shobhit - avatar