+ 1

Is there any way to access the computer's memory without using address of operator (&)?

25th Mar 2018, 4:11 PM
RahulShukla
RahulShukla - avatar
2 Respostas
+ 2
If you know the physical address you wish to access, you can directly assign it. char *pointer = 5; int x = *pointer;
25th Mar 2018, 5:27 PM
John Wells
John Wells - avatar
+ 1
you can use malloc, calloc and realloc: http://www.cplusplus.com/reference/cstdlib/malloc/
25th Mar 2018, 4:39 PM
Aaron Eberhardt
Aaron Eberhardt - avatar