Q about the iphone (3GS) voice memo record app?

What happens if the phone runs out of battery and switches off while recording? Do you lose that recording or will it save before shutting down?

You may have some of the recording, but not all of it. If the phone powers off due to low battery, it basically just shuts down.