Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int *signal;
- int adress = 0x0f6a2f1;
- //int self;
- signal = reinterpret_cast<int*>(adress);
- //cout<<signal; // 00F6A2F1 BASE 10
- //cout<<endl;
- //cout<< reinterpret_cast<int>(signal); // 16163569 BASE 16
- void* void_pointer = NULL;
- int* int_pointer = NULL;
- int n = 1500;
- void_pointer = int_pointer;
- int_pointer = &n;
- n = 11111;
- cout<<*int_pointer;
- //Referencja
- //int &r = liczba;
- //cout<<r;
- system("pause");
- }
Add Comment
Please, Sign In to add comment