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 … ...
Once again, pointers are simply memory addresses, and to fully utilize this similarity, C provides the concept of function pointers.
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 ...