encyclopegia.org

Return statement

In computer programming, a return statement causes execution to leave the current subroutine and resume at the point in the code immediately after the instruction which called the subroutine, known as its return address. The return address is saved by the calling routine, today usually on the process's call stack or in a register. Return statements in many programming languages allow a function to specify a return value to be passed back to the code that called the function.

In computer programming, a return statement causes execution to leave the current subroutine and resume at the point in the code immediately after the instruction which called the subroutine, known as its return address. The return address is saved by the calling routine, today usually on the process's call stack or in a register. Return statements in many programming languages allow a function to specify a return value to be passed back to the code that called the function. ==Syntax== Return statements come in many shapes. The following syntaxes are most common: In some assembly languages, for example that for the MOS Technology 6502, the mnemonic "RTS" (ReTurn from Subroutine) is used. ==Yield statements== Cousin to return statements are yield statements: where a return causes a subroutine to terminate, a yield causes a coroutine to suspend. The coroutine will later continue from where it suspended if it is called again. Coroutines are significantly more involved to implement than subroutines, and thus yield statements are less common than return statements, but they are found in a number of languages. ==Call/return sequences== A number of call/return sequences are possible depending on the hardware instruction set, such as the following: The CALL instruction pushes address of the next instruction on the stack and branches to the specified address. The RETURN instruction pops the return address from the stack into the instruction pointer and execution resumes at that address. (Examples: x86, PDP-11) In architectures such as the Motorola 96000, the stack area may be allocated in a separate address space known as the Stack Memory Space, distinct from the main memory address space. The NEC μPD7720 also features a stack with its own separate address space. The CALL instruction places address of the next instruction in a register and branches to the specified address. The RETURN instruction sequence places the return address from the register into the instruction pointer and execution resumes at that address. (Examples: IBM System/360 and successors through z/Architecture, most RISC architectures) The CALL instruction places address of the next (or current ) instruction in the storage location at the call address and branches to the specified address+1. The RETURN instruction sequence branches to the return address by an indirect jump to the first instruction of the subroutine. (Examples: IBM 1130, SDS 9XX, PDP-8) ==See also== Return type Exit status ==Notes== ==References==

References

  1. 10. Procedure declarations · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "10. Procedure declarations." Wirth, Niklaus (May 3, 2016). 2026-11-21. https://en.wikipedia.org/wiki/Niklaus_Wirth. Accessed 23 November 2026.

    Chicago "10. Procedure declarations." Wirth, Niklaus (May 3, 2016). 2026-11-21. https://en.wikipedia.org/wiki/Niklaus_Wirth.

    APA Wirth, Niklaus (May 3, 2016). (2026). 10. Procedure declarations. Retrieved November 23, 2026, from https://en.wikipedia.org/wiki/Niklaus_Wirth

  2. return - return from a function or dot script · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "return - return from a function or dot script." 2026-11-21. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#return. Accessed 23 November 2026.

    Chicago "return - return from a function or dot script." 2026-11-21. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#return.

    APA encyclopegia.org. (2026). return - return from a function or dot script. Retrieved November 23, 2026, from https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#return

  3. in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 2026-11-22." in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 20. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 2026-11-22." in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 20. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 20. (2026). in the Bourne shell, only integers in the range 0–255 may be returned [ 11 ] Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  4. PHP: return - Manual · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "PHP: return - Manual." 2026-11-21. http://www.php.net/manual/en/function.return.php. Accessed 23 November 2026.

    Chicago "PHP: return - Manual." 2026-11-21. http://www.php.net/manual/en/function.return.php.

    APA encyclopegia.org. (2026). PHP: return - Manual. Retrieved November 23, 2026, from http://www.php.net/manual/en/function.return.php

  5. Return - Javascript · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Return - Javascript." 2026-11-21. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return. Accessed 23 November 2026.

    Chicago "Return - Javascript." 2026-11-21. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return.

    APA encyclopegia.org. (2026). Return - Javascript. Retrieved November 23, 2026, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return

  6. C++ Notes: Function return Statement · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "C++ Notes: Function return Statement." Swartz, Fred. 2026-11-21. https://web.archive.org/web/20070103043830/https://www.fredosaurus.com/notes-cpp/functions/return.html. Accessed 23 November 2026.

    Chicago "C++ Notes: Function return Statement." Swartz, Fred. 2026-11-21. https://web.archive.org/web/20070103043830/https://www.fredosaurus.com/notes-cpp/functions/return.html.

    APA Swartz, Fred. (2026). C++ Notes: Function return Statement. Retrieved November 23, 2026, from https://web.archive.org/web/20070103043830/https://www.fredosaurus.com/notes-cpp/functions/return.html

  7. Watt, David Anthony; Findlay, William (2004). Programming Language Design Concepts . John Wiley & Sons. pp. 215– 221. ISBN 978-0-470-85320-7 . Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Watt, David Anthony; Findlay, William (2004). Programming Language Design Concepts . John Wiley & Sons. pp. 215– 221. ISBN 978-0-470-85320-7 . Wikipedia revision 1359237580, retrieved 2026-11-22." Watt, David Anthony; Findlay, William (2004). 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 23 November 2026.

    Chicago "Watt, David Anthony; Findlay, William (2004). Programming Language Design Concepts . John Wiley & Sons. pp. 215– 221. ISBN 978-0-470-85320-7 . Wikipedia revision 1359237580, retrieved 2026-11-22." Watt, David Anthony; Findlay, William (2004). 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Watt, David Anthony; Findlay, William (2004). (2026). Watt, David Anthony; Findlay, William (2004). Programming Language Design Concepts . John Wiley & Sons. pp. 215– 221. ISBN 978-0-470-85320-7 . Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  8. Loop Exits and Structured Programming: Reopening the Debate · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Loop Exits and Structured Programming: Reopening the Debate." Roberts, E. 2026-11-21. https://doi.org/10.1145%2F199691.199815. Accessed 23 November 2026.

    Chicago "Loop Exits and Structured Programming: Reopening the Debate." Roberts, E. 2026-11-21. https://doi.org/10.1145%2F199691.199815.

    APA Roberts, E. (2026). Loop Exits and Structured Programming: Reopening the Debate. Retrieved November 23, 2026, from https://doi.org/10.1145%2F199691.199815

  9. Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). Refactoring: Improving the Design of Existing Code (Google eBook) . Addison-Wesley. pp. 237, 250. ISBN 9780133065268 . ... one exit point mentality ... I don't follow the rule about one exit point from a method. Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). Refactoring: Improving the Design of Existing Code (Google eBook) . Addison-Wesley. pp. 237, 250. ISBN 9780133065268 . ... one exit point mentality ... I don't follow the rule about one exit point from a method. Wikipedia revision 1359237580, retrieved 2026-11-22." Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). 2026-11-21. https://books.google.com/books?id=HmrDHwgkbPsC. Accessed 23 November 2026.

    Chicago "Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). Refactoring: Improving the Design of Existing Code (Google eBook) . Addison-Wesley. pp. 237, 250. ISBN 9780133065268 . ... one exit point mentality ... I don't follow the rule about one exit point from a method. Wikipedia revision 1359237580, retrieved 2026-11-22." Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). 2026-11-21. https://books.google.com/books?id=HmrDHwgkbPsC.

    APA Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). (2026). Martin Fowler; Kent Beck; John Brant; William Opdyke; Don Roberts (2012). Refactoring: Improving the Design of Existing Code (Google eBook) . Addison-Wesley. pp. 237, 250. ISBN 9780133065268 . ... one exit point mentality ... I don't follow the rule about one exit point from a method. Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=HmrDHwgkbPsC

  10. 7: Behavior · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "7: Behavior." Kent Beck (2007). 2026-11-21. https://books.google.com/books?id=xLyXPCxBhQUC. Accessed 23 November 2026.

    Chicago "7: Behavior." Kent Beck (2007). 2026-11-21. https://books.google.com/books?id=xLyXPCxBhQUC.

    APA Kent Beck (2007). (2026). 7: Behavior. Retrieved November 23, 2026, from https://books.google.com/books?id=xLyXPCxBhQUC

  11. Multiple return statements · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Multiple return statements." 2026-11-21. http://www.javapractices.com/topic/TopicAction.do?Id=114. Accessed 23 November 2026.

    Chicago "Multiple return statements." 2026-11-21. http://www.javapractices.com/topic/TopicAction.do?Id=114.

    APA encyclopegia.org. (2026). Multiple return statements. Retrieved November 23, 2026, from http://www.javapractices.com/topic/TopicAction.do?Id=114

  12. Return statements and the single exit fantasy · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Return statements and the single exit fantasy." Fred Swartz. 2026-11-21. https://web.archive.org/web/20200223081346/http://leepoint.net/JavaBasics/methods/method-commentary/methcom-30-multiple-return.html. Accessed 23 November 2026.

    Chicago "Return statements and the single exit fantasy." Fred Swartz. 2026-11-21. https://web.archive.org/web/20200223081346/http://leepoint.net/JavaBasics/methods/method-commentary/methcom-30-multiple-return.html.

    APA Fred Swartz. (2026). Return statements and the single exit fantasy. Retrieved November 23, 2026, from https://web.archive.org/web/20200223081346/http://leepoint.net/JavaBasics/methods/method-commentary/methcom-30-multiple-return.html

  13. The finally Block · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "The finally Block." 2026-11-21. http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html. Accessed 23 November 2026.

    Chicago "The finally Block." 2026-11-21. http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html.

    APA encyclopegia.org. (2026). The finally Block. Retrieved November 23, 2026, from http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html

  14. DSP96002 32-BIT Digital Signal Processor User's Manual · retrieved 2023-12-23 · rev 1359237580
    Cite this reference

    MLA "DSP96002 32-BIT Digital Signal Processor User's Manual." "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). 2023-12-23. https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=27. Accessed 23 November 2026.

    Chicago "DSP96002 32-BIT Digital Signal Processor User's Manual." "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). 2023-12-23. https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=27.

    APA "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). (2023). DSP96002 32-BIT Digital Signal Processor User's Manual. Retrieved November 23, 2026, from https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=27

  15. DSP96002 32-BIT Digital Signal Processor User's Manual · retrieved 2023-12-23 · rev 1359237580
    Cite this reference

    MLA "DSP96002 32-BIT Digital Signal Processor User's Manual." "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). 2023-12-23. https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=50. Accessed 23 November 2026.

    Chicago "DSP96002 32-BIT Digital Signal Processor User's Manual." "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). 2023-12-23. https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=50.

    APA "DSP96002 32-BIT Digital Signal Processor User's Manual" (PDF). (2023). DSP96002 32-BIT Digital Signal Processor User's Manual. Retrieved November 23, 2026, from https://www.nxp.com/docs/en/user-guide/DSP96002UM.pdf#page=50

  16. μPD77C20A, 7720A, 77P20 Digital Signal Processor · retrieved 2023-12-24 · rev 1359237580
    Cite this reference

    MLA "μPD77C20A, 7720A, 77P20 Digital Signal Processor." 2023-12-24. https://www.datasheetarchive.com/datasheet?id=71b7ef54b1f0964332c3db2035de7589c6d319&type=M&term=upd7720. Accessed 23 November 2026.

    Chicago "μPD77C20A, 7720A, 77P20 Digital Signal Processor." 2023-12-24. https://www.datasheetarchive.com/datasheet?id=71b7ef54b1f0964332c3db2035de7589c6d319&type=M&term=upd7720.

    APA encyclopegia.org. (2023). μPD77C20A, 7720A, 77P20 Digital Signal Processor. Retrieved November 23, 2026, from https://www.datasheetarchive.com/datasheet?id=71b7ef54b1f0964332c3db2035de7589c6d319&type=M&term=upd7720

  17. Gleaves, R. (2012). Modula-2 for Pascal Programmers . Springer. p. 71. ISBN 9781461385318 . Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Gleaves, R. (2012). Modula-2 for Pascal Programmers . Springer. p. 71. ISBN 9781461385318 . Wikipedia revision 1359237580, retrieved 2026-11-22." Gleaves, R. 2026-11-21. https://books.google.com/books?id=pvzSBwAAQBAJ&pg=PA71. Accessed 23 November 2026.

    Chicago "Gleaves, R. (2012). Modula-2 for Pascal Programmers . Springer. p. 71. ISBN 9781461385318 . Wikipedia revision 1359237580, retrieved 2026-11-22." Gleaves, R. 2026-11-21. https://books.google.com/books?id=pvzSBwAAQBAJ&pg=PA71.

    APA Gleaves, R. (2026). Gleaves, R. (2012). Modula-2 for Pascal Programmers . Springer. p. 71. ISBN 9781461385318 . Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=pvzSBwAAQBAJ&pg=PA71

  18. Flanders, Harley (2012). Scientific Pascal . Springer. p. 35. ISBN 9781461224280 . Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "Flanders, Harley (2012). Scientific Pascal . Springer. p. 35. ISBN 9781461224280 . Wikipedia revision 1359237580, retrieved 2026-11-22." Flanders, Harley (2012). 2026-11-21. https://books.google.com/books?id=D7gPBwAAQBAJ&pg=PA35. Accessed 23 November 2026.

    Chicago "Flanders, Harley (2012). Scientific Pascal . Springer. p. 35. ISBN 9781461224280 . Wikipedia revision 1359237580, retrieved 2026-11-22." Flanders, Harley (2012). 2026-11-21. https://books.google.com/books?id=D7gPBwAAQBAJ&pg=PA35.

    APA Flanders, Harley (2012). (2026). Flanders, Harley (2012). Scientific Pascal . Springer. p. 35. ISBN 9781461224280 . Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=D7gPBwAAQBAJ&pg=PA35

  19. ANSI x3.9-1966. USA Standard FORTRAN (PDF) . American National Standards Institute. p. 14. Archived from the original (PDF) on May 15, 2011 . Retrieved May 5, 2010 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "ANSI x3.9-1966. USA Standard FORTRAN (PDF) . American National Standards Institute. p. 14. Archived from the original (PDF) on May 15, 2011 . Retrieved May 5, 2010 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22." ANSI x3. 2026-11-21. https://web.archive.org/web/20110515143149/http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf. Accessed 23 November 2026.

    Chicago "ANSI x3.9-1966. USA Standard FORTRAN (PDF) . American National Standards Institute. p. 14. Archived from the original (PDF) on May 15, 2011 . Retrieved May 5, 2010 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22." ANSI x3. 2026-11-21. https://web.archive.org/web/20110515143149/http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf.

    APA ANSI x3. (2026). ANSI x3.9-1966. USA Standard FORTRAN (PDF) . American National Standards Institute. p. 14. Archived from the original (PDF) on May 15, 2011 . Retrieved May 5, 2010 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://web.archive.org/web/20110515143149/http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf

  20. ANSI x3.9-1978. American National Standard – Programming Language FORTRAN . American National Standards Institute. 15.8 RETURN Statement. Archived from the original on October 29, 2013 . Retrieved December 11, 2007 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "ANSI x3.9-1978. American National Standard – Programming Language FORTRAN . American National Standards Institute. 15.8 RETURN Statement. Archived from the original on October 29, 2013 . Retrieved December 11, 2007 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22." ANSI x3. 2026-11-21. https://web.archive.org/web/20131029134137/http://www.fortran.com/fortran/F77_std/rjcnf.html. Accessed 23 November 2026.

    Chicago "ANSI x3.9-1978. American National Standard – Programming Language FORTRAN . American National Standards Institute. 15.8 RETURN Statement. Archived from the original on October 29, 2013 . Retrieved December 11, 2007 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22." ANSI x3. 2026-11-21. https://web.archive.org/web/20131029134137/http://www.fortran.com/fortran/F77_std/rjcnf.html.

    APA ANSI x3. (2026). ANSI x3.9-1978. American National Standard – Programming Language FORTRAN . American National Standards Institute. 15.8 RETURN Statement. Archived from the original on October 29, 2013 . Retrieved December 11, 2007 . {{ cite book }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://web.archive.org/web/20131029134137/http://www.fortran.com/fortran/F77_std/rjcnf.html

  21. How to best return the value of a function · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "How to best return the value of a function." Sakkinen, Markku (March 1989). 2026-11-21. https://doi.org/10.1145%2F66083.66087. Accessed 23 November 2026.

    Chicago "How to best return the value of a function." Sakkinen, Markku (March 1989). 2026-11-21. https://doi.org/10.1145%2F66083.66087.

    APA Sakkinen, Markku (March 1989). (2026). How to best return the value of a function. Retrieved November 23, 2026, from https://doi.org/10.1145%2F66083.66087

  22. return Statement (C) · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "return Statement (C)." a b "return Statement (C)". 2026-11-21. https://learn.microsoft.com/en-us/cpp/c-language/return-statement-c. Accessed 23 November 2026.

    Chicago "return Statement (C)." a b "return Statement (C)". 2026-11-21. https://learn.microsoft.com/en-us/cpp/c-language/return-statement-c.

    APA a b "return Statement (C)". (2026). return Statement (C). Retrieved November 23, 2026, from https://learn.microsoft.com/en-us/cpp/c-language/return-statement-c

  23. return Statement (C++) · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "return Statement (C++)." a b "return Statement (C++)". 2026-11-21. https://learn.microsoft.com/en-us/cpp/cpp/return-statement-cpp. Accessed 23 November 2026.

    Chicago "return Statement (C++)." a b "return Statement (C++)". 2026-11-21. https://learn.microsoft.com/en-us/cpp/cpp/return-statement-cpp.

    APA a b "return Statement (C++)". (2026). return Statement (C++). Retrieved November 23, 2026, from https://learn.microsoft.com/en-us/cpp/cpp/return-statement-cpp

  24. a b c Martelli, Alex (2006). Python in a Nutshell: A Desktop Quick Reference (2nd ed.). O'Reilly Media. p. 73. ISBN 9781449379100 . Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "a b c Martelli, Alex (2006). Python in a Nutshell: A Desktop Quick Reference (2nd ed.). O'Reilly Media. p. 73. ISBN 9781449379100 . Wikipedia revision 1359237580, retrieved 2026-11-22." a b c Martelli, Alex (2006). 2026-11-21. https://books.google.com/books?id=JnR9hQA3SncC&pg=PA73. Accessed 23 November 2026.

    Chicago "a b c Martelli, Alex (2006). Python in a Nutshell: A Desktop Quick Reference (2nd ed.). O'Reilly Media. p. 73. ISBN 9781449379100 . Wikipedia revision 1359237580, retrieved 2026-11-22." a b c Martelli, Alex (2006). 2026-11-21. https://books.google.com/books?id=JnR9hQA3SncC&pg=PA73.

    APA a b c Martelli, Alex (2006). (2026). a b c Martelli, Alex (2006). Python in a Nutshell: A Desktop Quick Reference (2nd ed.). O'Reilly Media. p. 73. ISBN 9781449379100 . Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=JnR9hQA3SncC&pg=PA73

  25. a b Scott, Michael L. (2006). Programming Language Pragmatics . Morgan Kaufmann. p. 432. ISBN 9780126339512 . Wikipedia revision 1359237580, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1359237580
    Cite this reference

    MLA "a b Scott, Michael L. (2006). Programming Language Pragmatics . Morgan Kaufmann. p. 432. ISBN 9780126339512 . Wikipedia revision 1359237580, retrieved 2026-11-22." a b Scott, Michael L. 2026-11-21. https://books.google.com/books?id=TLbvODF1uIEC&pg=PA432. Accessed 23 November 2026.

    Chicago "a b Scott, Michael L. (2006). Programming Language Pragmatics . Morgan Kaufmann. p. 432. ISBN 9780126339512 . Wikipedia revision 1359237580, retrieved 2026-11-22." a b Scott, Michael L. 2026-11-21. https://books.google.com/books?id=TLbvODF1uIEC&pg=PA432.

    APA a b Scott, Michael L. (2026). a b Scott, Michael L. (2006). Programming Language Pragmatics . Morgan Kaufmann. p. 432. ISBN 9780126339512 . Wikipedia revision 1359237580, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=TLbvODF1uIEC&pg=PA432

  26. Modula-2 for Pascal Programmers . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Modula-2 for Pascal Programmers ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Modula-2 for Pascal Programmers ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA encyclopegia.org. (2026). Modula-2 for Pascal Programmers . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  27. return Statement (C++) . Microsoft Docs . 3 August 2021. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "return Statement (C++) . Microsoft Docs . 3 August 2021." return Statement (C++). 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "return Statement (C++) . Microsoft Docs . 3 August 2021." return Statement (C++). 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA return Statement (C++). (2026). return Statement (C++) . Microsoft Docs . 3 August 2021. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  28. PHP: return - Manual . PHP Manual . retrieved 26 March 2013 · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "PHP: return - Manual . PHP Manual . retrieved 26 March 2013." PHP: return - Manual. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "PHP: return - Manual . PHP Manual . retrieved 26 March 2013." PHP: return - Manual. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA PHP: return - Manual. (2026). PHP: return - Manual . PHP Manual . retrieved 26 March 2013. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  29. Return - Javascript . MDN Javascript Reference . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Return - Javascript . MDN Javascript Reference ." Return - Javascript. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Return - Javascript . MDN Javascript Reference ." Return - Javascript. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Return - Javascript. (2026). Return - Javascript . MDN Javascript Reference . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  30. Error message · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Error message." - | Smalltalk | ^ value | |- | Tcl (programming language)|Tcl | return return $value return -code error "Error message". 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Error message." - | Smalltalk | ^ value | |- | Tcl (programming language)|Tcl | return return $value return -code error "Error message". 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA - | Smalltalk | ^ value | |- | Tcl (programming language)|Tcl | return return $value return -code error "Error message". (2026). Error message. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  31. Refactoring: Improving . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Refactoring: Improving ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Refactoring: Improving ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA encyclopegia.org. (2026). Refactoring: Improving . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  32. Kent Beck. Implementation Patterns . Pearson Education . 2007. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Kent Beck. Implementation Patterns . Pearson Education . 2007." Kent Beck. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Kent Beck. Implementation Patterns . Pearson Education . 2007." Kent Beck. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Kent Beck. (2026). Kent Beck. Implementation Patterns . Pearson Education . 2007. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  33. Multiple return statements . Java Practices . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Multiple return statements . Java Practices ." Multiple return statements. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Multiple return statements . Java Practices ." Multiple return statements. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Multiple return statements. (2026). Multiple return statements . Java Practices . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  34. Fred Swartz. Return statements and the single exit fantasy . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Fred Swartz. Return statements and the single exit fantasy ." Fred Swartz. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Fred Swartz. Return statements and the single exit fantasy ." Fred Swartz. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Fred Swartz. (2026). Fred Swartz. Return statements and the single exit fantasy . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  35. The finally Block . The Java Tutorials . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "The finally Block . The Java Tutorials ." The finally Block. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "The finally Block . The Java Tutorials ." The finally Block. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA The finally Block. (2026). The finally Block . The Java Tutorials . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  36. DSP96002 32-BIT Digital Signal Processor User's Manual . retrieved 2023-12-24 · retrieved 2023-12-23 · rev 1359237580
    Cite this reference

    MLA "DSP96002 32-BIT Digital Signal Processor User's Manual . retrieved 2023-12-24." DSP96002 32-BIT Digital Signal Processor User's Manual. 2023-12-23. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "DSP96002 32-BIT Digital Signal Processor User's Manual . retrieved 2023-12-24." DSP96002 32-BIT Digital Signal Processor User's Manual. 2023-12-23. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA DSP96002 32-BIT Digital Signal Processor User's Manual. (2023). DSP96002 32-BIT Digital Signal Processor User's Manual . retrieved 2023-12-24. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  37. Martelli, Alex. Python in a Nutshell: A Desktop Quick Reference . O'Reilly Media . 2006. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Martelli, Alex. Python in a Nutshell: A Desktop Quick Reference . O'Reilly Media . 2006." Martelli, Alex. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Martelli, Alex. Python in a Nutshell: A Desktop Quick Reference . O'Reilly Media . 2006." Martelli, Alex. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Martelli, Alex. (2026). Martelli, Alex. Python in a Nutshell: A Desktop Quick Reference . O'Reilly Media . 2006. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  38. μPD77C20A, 7720A, 77P20 Digital Signal Processor . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "μPD77C20A, 7720A, 77P20 Digital Signal Processor ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "μPD77C20A, 7720A, 77P20 Digital Signal Processor ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA encyclopegia.org. (2026). μPD77C20A, 7720A, 77P20 Digital Signal Processor . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  39. Scott, Michael L. Programming Language Pragmatics . Morgan Kaufmann . 2006. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Scott, Michael L. Programming Language Pragmatics . Morgan Kaufmann . 2006." Scott, Michael L. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Scott, Michael L. Programming Language Pragmatics . Morgan Kaufmann . 2006." Scott, Michael L. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Scott, Michael L. (2026). Scott, Michael L. Programming Language Pragmatics . Morgan Kaufmann . 2006. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  40. Flanders, Harley. Scientific Pascal . Springer . 2012. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Flanders, Harley. Scientific Pascal . Springer . 2012." Flanders, Harley. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Flanders, Harley. Scientific Pascal . Springer . 2012." Flanders, Harley. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Flanders, Harley. (2026). Flanders, Harley. Scientific Pascal . Springer . 2012. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  41. USA Standard FORTRAN . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "USA Standard FORTRAN ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "USA Standard FORTRAN ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA encyclopegia.org. (2026). USA Standard FORTRAN . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  42. American National Standard – Programming Language FORTRAN . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "American National Standard – Programming Language FORTRAN ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "American National Standard – Programming Language FORTRAN ." 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA encyclopegia.org. (2026). American National Standard – Programming Language FORTRAN . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  43. Wirth, Niklaus. The Programming Language Oberon . May 3, 2016. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "Wirth, Niklaus. The Programming Language Oberon . May 3, 2016." Wirth, Niklaus. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "Wirth, Niklaus. The Programming Language Oberon . May 3, 2016." Wirth, Niklaus. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA Wirth, Niklaus. (2026). Wirth, Niklaus. The Programming Language Oberon . May 3, 2016. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  44. while in JavaScript the value undefined is returned. In Windows PowerShell all evaluated expressions which are not captured (e.g., assigned to a variable, Type conversion|cast to Void type|v . · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "while in JavaScript the value undefined is returned. In Windows PowerShell all evaluated expressions which are not captured (e.g., assigned to a variable, Type conversion|cast to Void type|v ." while in JavaScript the value undefined is returned. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "while in JavaScript the value undefined is returned. In Windows PowerShell all evaluated expressions which are not captured (e.g., assigned to a variable, Type conversion|cast to Void type|v ." while in JavaScript the value undefined is returned. 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA while in JavaScript the value undefined is returned. (2026). while in JavaScript the value undefined is returned. In Windows PowerShell all evaluated expressions which are not captured (e.g., assigned to a variable, Type conversion|cast to Void type|v . Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

  45. return Statement (C) . Microsoft Docs . 25 January 2023. · retrieved 2026-06-12 · rev 1359237580
    Cite this reference

    MLA "return Statement (C) . Microsoft Docs . 25 January 2023." return Statement (C). 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580. Accessed 23 November 2026.

    Chicago "return Statement (C) . Microsoft Docs . 25 January 2023." return Statement (C). 2026-06-12. https://en.wikipedia.org/w/index.php?oldid=1359237580.

    APA return Statement (C). (2026). return Statement (C) . Microsoft Docs . 25 January 2023. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359237580

Cite this article

MLA

"Return statement." encyclopegia.org, 2026, https://encyclopegia.org/wiki/return-statement. Accessed 23 November 2026.

Chicago

"Return statement." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/return-statement.

APA

encyclopegia.org. (2026). Return statement. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/return-statement

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Andrew Wood (singer)

enwiki · references available

Jacques Lemercier

enwiki · references available

Czech Republic at the 2004 Summer Olympics

enwiki · references available

Saola

enwiki · references available

Bellpuig

enwiki · references available

Coombe Hill, Buckinghamshire

enwiki · references available

Classification of swords

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359237580 · 0.5 · snapshot enwiki-001359237580

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.