Closed RidhwaanDev closed 4 years ago
NVM, I misread what the assembly was doing, both are close enough. I'd still prefer if there was only 1 dereference in the code for reading the pointer to keep things simple though.
Awesome thanks @RidhwaanDev!
In order to access and modify the underlying int value of a void we must first cast to int. Then we use the int* to modify the value. Without this cast running
gcc file.c
throws an error. Resolves issue #170