You have 2 files say file1.c and file2.c

contents of file1.c are as follows :

int main()
 {
   int a=100;

   printf(" %d", &a);

   getch(); //Halt the execution

   printf(" %d", a);

}


contents of file2.c are as follows :

int main()
 {
   int *pa = (int*)(Here comes the address that was printed in file1.c);

   *pa = 10;

 }

after halting the file1.c execution , file2.c is executed and then file1.c is 
resumed again to see the contents of a. What would be the output?

Reply via email to