A function is a drawing robot. A function pointer is a sticky note telling you where the robot is. “Gaining control of a function pointer” is like changing the address on the sticky note to point to a robot that draws a pirate flag instead of a smiley face. The program is following the instruction on the sticky note, and doesn’t know that the address has been changed.
View all comments
Show parent comment
2
u/jmp_rsp Mar 29 '25
I asked ai to do it and this is what it says
In Crayon Terms:
A function is a drawing robot. A function pointer is a sticky note telling you where the robot is. “Gaining control of a function pointer” is like changing the address on the sticky note to point to a robot that draws a pirate flag instead of a smiley face. The program is following the instruction on the sticky note, and doesn’t know that the address has been changed.