EmbLogic's Blog

Memory address:

int *ptr,a;

ptr=&a;

printf(“%p”,ptr);

is it prints the physical address of ram or logical??

3 Responses to Memory address:

  1. sheetal sharma says:

    i think pointer stored logical address

  2. manoj7410 says:

    it will store a logical address..

  3. admin says:

    A number that is assigned to each byte in a computer’s memory that the CPU uses to track Memory Address
    where data and instructions are stored in RAM. Each byte is assigned a memory address whether or not it is being used to store data. The computer’s CPU uses the address bus to communicate which memory address it wants to access, and the memory controller reads the address and then puts the data stored in that memory address back onto the address bus for the CPU to use.

Leave a Reply to sheetal sharma Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>