nothingasis
In Runtime
- Messages
- 198
- Location
- CA
Code::
int Array[] = {1,2,3,4,5,6};
int *Ptr = 0;
iPtr = &Array[0];
Ptr = Ptr - 2;
cout << *Ptr << endl; //Outputs the value -858993460
Hello again, here with another question . I wasn't sure how to even ask this without displaying the code so searching kind of went no good for me. But can someone please explain?
Everything works properly but my question is when I put Ptr on watch the value = 0x0028fb54 which I understand is a memory address, and expanded it gives me a value of -858993460 but what is that value?
int Array[] = {1,2,3,4,5,6};
int *Ptr = 0;
iPtr = &Array[0];
Ptr = Ptr - 2;
cout << *Ptr << endl; //Outputs the value -858993460
Hello again, here with another question . I wasn't sure how to even ask this without displaying the code so searching kind of went no good for me. But can someone please explain?
Everything works properly but my question is when I put Ptr on watch the value = 0x0028fb54 which I understand is a memory address, and expanded it gives me a value of -858993460 but what is that value?