Functions are programs that have names and perform a particular task. They are mostly used to perform a task again and again. They allow the users to reuse the same code without having to rewrite it. They are not considered to save disk space but they do save primary memory (RAM).