The behavior of the format function is controlled by the format string. The function retrieves the parameters requested by the format string from the stack. We have to supply an address of the memory.