ok, i want to know how to make a pointer in C++
e.g: i have the address 006587B8 the offset for the pointer is 18 and i want to make its value 1
006587B8 = Pointer
18 = Offset For Pointer
1 = Value I Want To Make The Address Pointed To Equil
ok, i want to know how to make a pointer in C++
e.g: i have the address 006587B8 the offset for the pointer is 18 and i want to make its value 1
006587B8 = Pointer
18 = Offset For Pointer
1 = Value I Want To Make The Address Pointed To Equil
Why would you want to modify a memory loactions value that doesnt belong to you ? It would give you a runtime exception or if not then the bhaviour would be undefined.
BTW a workign code which "attempts" to do it and fails at it:
int main (void)
{
int* p = 0x006587B8 ;
*(p + 18 ) = 1 ;
return(0);
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.