About 111,000 results
Open links in new tab
  1. What is the difference between a function and a subroutine?

    a. A subroutine is a logical construct used in writing Algorithms (or flowcharts) to designate processing functionality in one place. The subroutine provides some output based on input …

  2. Java: What is the difference between subroutine and methods?

    May 26, 2017 · Technically a (pure) function must always return the same result for a given set of parameters. This was good for non-oo languages as a replacement for "Subroutine", it is a …

  3. terminology - What is the difference between subroutine, co …

    Nov 11, 2023 · A subroutine and a function are essentially the same thing, with one difference: A function returns some sort of value (usually via the stack or CPU register), while a subroutine …

  4. Are "subroutine" and "routine" the same concept?

    In the context of the Programming Language Pragmatics example you provided, the subroutine appears to be the call stack of actions to be executed and each item of the stack are routines …

  5. functional programming - Difference between function, method, …

    Jul 5, 2021 · Routine and subroutine. Those words have mostly disappeared in modern languages. They were used in older programming languages. See also this related question: …

  6. Subroutines in batch files - Stack Overflow

    Nov 18, 2011 · In this way - you can never fall into the subroutine section. Also - always use REM statements before, during, and possibly after each section so you always know what a section …

  7. How does interrupt differ from subroutine calls? - Stack Overflow

    May 7, 2021 · The CPU just executes instructions; it's up to the programmer (of the OS or the subroutine) to put useful instructions there, e.g. on x86 ending with ret (normal return) or iret …

  8. What is the difference between a subroutine and a function?

    The most common definition of subroutine is a function that does not return anything and normally does not accept anything. It is only a piece of code with a name. Actually in most languages …

  9. Fortran procedure pointer to subroutines in derived type

    Apr 13, 2016 · In Fortran, I need a procedure pointer inside a derived type that can point to one of several subroutines. This problem seems to be common on SO: Fortran save procedure as …

  10. Subroutine vs functions in python - Stack Overflow

    Aug 29, 2022 · But, no where in the Glossary a subroutine is defined. From my understanding, in Python, there's no difference between a function and a subroutine. But, I could not find this …