swapping in and out a process many a times gives different address

20 views Asked by At
#include<stdio.h>
int main()
{
  int a;
  printf(" %u ",&a);
  return 0;
}

When we associate '&' with a variable the address we get is the virtual address when we run the program on a system with virtual memory. Then why swapping in and out a process gives different address many a time.
see image

0

There are 0 answers