You can't calculate the size of a malloc'ed piece of memory (unless you get your hands dirty with the grubby internals of malloc, but then that will only work on that one particular system). The...