I suppose if you wanted to be extra-clear, you could add (italics was already there, bold is new):
Remember that the argument to malloc() is always interpreted as bytes. If you need to contain anything other than character values, you need to use the sizeof() operator, which will return the size in bytes that a variable or object will take.
If they need an analogy for the pointer part, tell them it's like renting a locker at a gym -- the gym gives you access to the space, but YOU have to remember the locker number, or you won't be able to find/use it. The pointer is a tool that remembers your locker number for you. |