"In a technique called COPY ON WRITE, when a fork occurs, the parent process's pages are not copied for the child process. Instead, the pages are shared between the child and the parent process. Whenever a process (parent or child) modifies a page, a separate copy of that particular page alone is made for that process (parent or child) which performed the modification."
Does it mean that when a child process is created..both parent and child share the same pages of the process also the same page table..So all the variables will have the same address for both parent and child.
suppose child tries to modify any page then that particular page will be copied for child and it will point to a different frame in main memory.