About 5,360,000 results
Open links in new tab
  1. Difference between Function and Procedure - GeeksforGeeks

    Aug 1, 2022 · In this article, we will see the difference between Function and Procedure. The function is one of the fundamental thoughts in computer programming. It is used to calculate something from a given input. Hence it got its name from Mathematics. The function can be either user-defined or predefined.

  2. What is the difference between a "function" and a "procedure"?

    Apr 6, 2009 · Functions exist only in math, and they represent what is knowledge. Procedures exist in programming languages (including functional ones), and they represent how to knowledge. Function: sqrt (x) = the y such that y^2=x. Procedure: (define (sqrt x) (newtons-method (lambda (y) (- (square y) x)) 1.0)).

  3. Functions vs. Procedures - What's the Difference? | This vs. That

    Functions and procedures are both important concepts in programming, but they have some key differences. A function is a block of code that performs a specific task and returns a value.

  4. Function vs. Procedure — What’s the Difference?

    May 15, 2024 · A function returns a value and is designed to produce output based on input, while a procedure performs a sequence of steps with a specific task in mind, often without returning a value. A function in programming is a segment of code that takes input, processes it, …

  5. Function vs. Procedure - What's the Difference? | This vs. That

    Function and procedure are both subroutines in programming that can be called upon to perform a specific task. However, the main difference between the two lies in their return value. Functions return a value after performing their task, while procedures do not return any value.

  6. MySQL procedure vs function, which would I use when?

    Mar 19, 2019 · The most general difference between procedures and functions is that they are invoked differently and for different purposes: A procedure does not return a value. Instead, it is invoked with a CALL statement to perform an operation such as modifying a table or processing retrieved records.

  7. Functions And Procedures Explained For Beginners

    Feb 18, 2025 · The main difference is that a function returns a value after performing a task, while a procedure does not return any value. Functions are used to compute results, whereas procedures are used to perform actions or operations.

  8. Difference between Procedure, Function, and Method

    To most programmers, procedure, function, and method are the same thing. It is a callable, reusable code block that optionally takes some input, performs one or more operations, and optionally returns some output. However, there are subtle differences and definitions vary from language to language.

  9. Difference between Function and Procedure - BYJU'S

    Difference between Function and Procedure: Functions calculate the results of a program, but procedures perform certain tasks in a particular order, based on the given inputs.

  10. Function vs Procedure - Tpoint Tech - Java

    Apr 15, 2025 · In this article, we will discuss two important terms that are function and procedure, along with their comparison. The procedure is an important and frequently used programming construct for a compiler. It is used to generate good code for procedure calls and returns. The function contains the set of programming statements enclosed by {}.

  11. Some results have been removed