Hi, I was hoping someone can help me out. I'm running Linux Mint on a Windows 7 VM and I need my C programs to access memory locations at their will but this program gives me 3.14 twice which the second output should be different.
I mean it's great and all that they can't access each other memory location, but that's what I need them to do in my VM. And, it worked fine for my professor in class. Is it something with my VMWare configuration?:
int main ()
long int a;
double d = 3.14;
printf("BEFORE: d = %.15g\n", d);
a = 1073741824; /* Out of bounds reference */
printf("AFTER: d = %.15g\n", d);