News
In our first part on pointers, we covered the basics and common pitfalls of pointers in C. If we had to break it down into one sentence, the main principle of pointers is that they are simply data … ...
For example, Shape_draw_vcall () shown in the video, dereferences the “me” pointer to get the VPTR. Next, it gets from the VPTR to the specific function pointer inside the VTABLE, such as (*draw). And ...
Just remember casting pointer to int is a bad idea. When someone port the code to 64bit the pointer will be 64bit but int usually stay at 32bit.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results