Difference between Program and Function Last Updated : 15 Dec, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 1. Program : Program, as name suggest, are set or collection of instructions used by computer to execute specific task and these are created using particular programming languages such as C++, Python, Ruby, etc. 2. Function : Function, as name suggests, is basic concept in computer programming that one calls to control flow of program as well as perform a specific task, returns a value and resumes program where it was called. Difference between Program and Function : Program Function Programs are set of instructions executed by computer. Function is block of organized and reusable code. Programs has to instruct computer to do particular task. Functions has to perform action or related action. Programs do not return any result. Function usually return result that can be graphed or entered in table. It provides framework that set direction of program as well as plan about how objective will be achieved. It provides better modularity for application as well as high degree of reusing code. It cannot store local and global variables. It can store local and global variables. Types of programs include system programs, application programs, utility programs, etc. Types of function include modulus function, linear function, quadratic function, exponential function, etc. Program consists of compiled code that run directly from computers operating system. Functions can be used over and over again once it is defined. It is larger in size and does not require scripting engine to run. Functions are smaller in size as compared to programs. Programs are written in both low-level and high-level programming languages and are human readable and writable. Functions can be both low-level or top-level functions. Comment More infoAdvertise with us Next Article Difference between Program and Function M madhurihammad Follow Improve Article Tags : Technical Scripter Difference Between Software Engineering Technical Scripter 2020 Similar Reads Software Development Life Cycle (SDLC) Software development life cycle (SDLC) is a structured process that is used to design, develop, and test good-quality software. SDLC, or software development life cycle, is a methodology that defines the entire procedure of software development step-by-step. The goal of the SDLC life cycle model is 11 min read Decorators in Python In Python, decorators are a powerful and flexible way to modify or extend the behavior of functions or methods, without changing their actual code. A decorator is essentially a function that takes another function as an argument and returns a new function with enhanced functionality. Decorators are 10 min read Waterfall Model - Software Engineering The Waterfall Model is a Traditional Software Development Methodology. It was first introduced by Winston W. Royce in 1970. It is a linear and sequential approach to software development that consists of several phases. This classical waterfall model is simple and idealistic. It is important because 13 min read Difference Between IPv4 and IPv6 IPv4 and IPv6 are two versions of the system that gives devices a unique address on the internet, known as the Internet Protocol (IP). IP is like a set of rules that helps devices send and receive data online. Since the internet is made up of billions of connected devices, each one needs its own spe 7 min read AVL Tree Data Structure An AVL tree defined as a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees for any node cannot be more than one. Balance Factor = left subtree height - right subtree heightFor a Balanced Tree(for every node): -1 ⤠Balance Factor ⤠1Example of an 4 min read What is a Neural Network? Neural networks are machine learning models that mimic the complex functions of the human brain. These models consist of interconnected nodes or neurons that process data, learn patterns and enable tasks such as pattern recognition and decision-making.In this article, we will explore the fundamental 12 min read Difference between BFS and DFS Breadth-First Search (BFS) and Depth-First Search (DFS) are two fundamental algorithms used for traversing or searching graphs and trees. This article covers the basic difference between Breadth-First Search and Depth-First Search.Difference between BFS and DFSParametersBFSDFSStands forBFS stands fo 2 min read What is DFD(Data Flow Diagram)? Data Flow Diagram is a visual representation of the flow of data within the system. It help to understand the flow of data throughout the system, from input to output, and how it gets transformed along the way. The models enable software engineers, customers, and users to work together effectively d 9 min read ArrayList in Java Java ArrayList is a part of the collections framework and it is a class of java.util package. It provides us with dynamic-sized arrays in Java. The main advantage of ArrayList is that, unlike normal arrays, we don't need to mention the size when creating ArrayList. It automatically adjusts its capac 9 min read COCOMO Model - Software Engineering The Constructive Cost Model (COCOMO) It was proposed by Barry Boehm in 1981 and is based on the study of 63 projects, which makes it one of the best-documented models. It is a Software Cost Estimation Model that helps predict the effort, cost, and schedule required for a software development project 15+ min read Like