Memory in C Language Is Like Water
Memory in C Language Is Like Water shapeless void* like water void* water = malloc(4); now you put water into a cup (Cup*)water it becomes the cup Cup* cup = (Cup*)water; it becomes the bottle Bottle* bottle = (Bottle*)water; you put it in a teapot (Teapot*)water it becomes the teapot Teapot* teapot = (Teapot*)water;
A black-and-white Bruce Lee interview is edited into a programming joke about C memory and type casting. The clip explains that water becomes the shape of whatever container holds it, while a void pointer is cast into a cup, bottle, or teapot pointer; the escalating code captions make the metaphor funny for programmers. The song “One Inch Punch” by Yin Yin, an upbeat psychedelic funk track, gives the explanation a playful rhythmic mood and heightens the absurdity. EN: A black-and-white Bruce Lee interview is edited into a programming joke about C memory and type casting. The clip explains that water becomes the shape of whatever container holds it, while a void pointer is cast into a cup, bottle, or teapot pointer; the escalating code captions make the metaphor funny for programmers. The song “One Inch Punch” by Yin Yin, an upbeat psychedelic funk track, gives the explanation a playful rhythmic mood and heightens the absurdity.
Now you put water into a cup. It comes the cup. You put water into a bottle. It becomes the bottle. You put in a teapot. It becomes the teapot.
- @rzeczyzabawne / 5377 2023-01-11
- Template
- Be water, my friend
- Type
- video, 0:13
- Size
- 576×560 · 1.6 MiB
- Mood
- absurd, playful
- Language
- en
- Added