int *ptr,a;
ptr=&a;
printf(“%p”,ptr);
is it prints the physical address of ram or logical??
int *ptr,a;
ptr=&a;
printf(“%p”,ptr);
is it prints the physical address of ram or logical??
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
i think pointer stored logical address
it will store a logical address..
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.