Logo
Unionpedia
Communication
Get it on Google Play
New! Download Unionpedia on your Android™ device!
Free
Faster access than browser!
 

Return statement

Index 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 where the subroutine was called, known as its return address. [1]

63 relations: Ada (programming language), Assembly language, Bash (Unix shell), BASIC, Boolean data type, C (programming language), C Sharp (programming language), C++, Call stack, Compiler, Computer programming, Control flow, Coroutine, D (programming language), David Watt (computer scientist), Eric S. Roberts, Exception handling, Exit status, Expression (computer science), Expression-oriented programming language, Fortran, Goto, Guard (computer science), Java (programming language), JavaScript, Kent Beck, Lazy evaluation, Lisp (programming language), List (abstract data type), Martin Fowler, MOS Technology 6502, Null device, Oberon (programming language), Object (computer science), Parameter (computer programming), Pascal (programming language), Perl, PHP, Pipeline (Unix), PowerShell, Process (computing), Python (programming language), Record (computer science), Reference (computer science), Return code, Return type, Ruby (programming language), S-algol, Smalltalk, Source code, ..., Spaghetti code, Statement (computer science), String (computer science), Struct (C programming language), Structured programming, Subroutine, Tracing (software), Type conversion, Undefined behavior, Variable (computer science), Visual Basic .NET, Void type, X86 assembly language. Expand index (13 more) »

Ada (programming language)

Ada is a structured, statically typed, imperative, and object-oriented high-level computer programming language, extended from Pascal and other languages.

New!!: Return statement and Ada (programming language) · See more »

Assembly language

An assembly (or assembler) language, often abbreviated asm, is a low-level programming language, in which there is a very strong (but often not one-to-one) correspondence between the assembly program statements and the architecture's machine code instructions.

New!!: Return statement and Assembly language · See more »

Bash (Unix shell)

Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell.

New!!: Return statement and Bash (Unix shell) · See more »

BASIC

BASIC (an acronym for Beginner's All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use.

New!!: Return statement and BASIC · See more »

Boolean data type

In computer science, the Boolean data type is a data type that has one of two possible values (usually denoted true and false), intended to represent the two truth values of logic and Boolean algebra.

New!!: Return statement and Boolean data type · See more »

C (programming language)

C (as in the letter ''c'') is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.

New!!: Return statement and C (programming language) · See more »

C Sharp (programming language)

C# (/si: ʃɑːrp/) is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

New!!: Return statement and C Sharp (programming language) · See more »

C++

C++ ("see plus plus") is a general-purpose programming language.

New!!: Return statement and C++ · See more »

Call stack

In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program.

New!!: Return statement and Call stack · See more »

Compiler

A compiler is computer software that transforms computer code written in one programming language (the source language) into another programming language (the target language).

New!!: Return statement and Compiler · See more »

Computer programming

Computer programming is the process of building and designing an executable computer program for accomplishing a specific computing task.

New!!: Return statement and Computer programming · See more »

Control flow

In computer science, control flow (or flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated.

New!!: Return statement and Control flow · See more »

Coroutine

Coroutines are computer-program components that generalize subroutines for non-preemptive multitasking, by allowing multiple entry points for suspending and resuming execution at certain locations.

New!!: Return statement and Coroutine · See more »

D (programming language)

D is an object-oriented, imperative, multi-paradigm system programming language created by Walter Bright of Digital Mars and released in 2001.

New!!: Return statement and D (programming language) · See more »

David Watt (computer scientist)

David Anthony Watt (born 1946) is a British computer scientist.

New!!: Return statement and David Watt (computer scientist) · See more »

Eric S. Roberts

Eric S. Roberts is an American computer scientist noted for his contributions to computer science education through textbook authorship and his leadership in computing curriculum development.

New!!: Return statement and Eric S. Roberts · See more »

Exception handling

Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional conditions requiring special processing – often changing the normal flow of program execution.

New!!: Return statement and Exception handling · See more »

Exit status

The exit status of a process in computer programming is a small number passed from a child process (or callee) to a parent process (or caller) when it has finished executing a specific procedure or delegated task.

New!!: Return statement and Exit status · See more »

Expression (computer science)

An expression in a programming language is a combination of one or more constants, variables, operators, and functions that the programming language interprets (according to its particular rules of precedence and of association) and computes to produce ("to return", in a stateful environment) another value.

New!!: Return statement and Expression (computer science) · See more »

Expression-oriented programming language

An expression-oriented programming language is a programming language where every (or nearly every) construction is an expression and thus yields a value.

New!!: Return statement and Expression-oriented programming language · See more »

Fortran

Fortran (formerly FORTRAN, derived from Formula Translation) is a general-purpose, compiled imperative programming language that is especially suited to numeric computation and scientific computing.

New!!: Return statement and Fortran · See more »

Goto

GoTo (goto, GOTO, GO TO or other case combinations, depending on the programming language) is a statement found in many computer programming languages.

New!!: Return statement and Goto · See more »

Guard (computer science)

In computer programming, a guard is a boolean expression that must evaluate to true if the program execution is to continue in the branch in question.

New!!: Return statement and Guard (computer science) · See more »

Java (programming language)

Java is a general-purpose computer-programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

New!!: Return statement and Java (programming language) · See more »

JavaScript

JavaScript, often abbreviated as JS, is a high-level, interpreted programming language.

New!!: Return statement and JavaScript · See more »

Kent Beck

Kent Beck (born 1961) is an American software engineer and the creator of extreme programming, a software development methodology that eschews rigid formal specification for a collaborative and iterative design process.

New!!: Return statement and Kent Beck · See more »

Lazy evaluation

In programming language theory, lazy evaluation, or call-by-need is an evaluation strategy which delays the evaluation of an expression until its value is needed (non-strict evaluation) and which also avoids repeated evaluations (sharing).

New!!: Return statement and Lazy evaluation · See more »

Lisp (programming language)

Lisp (historically, LISP) is a family of computer programming languages with a long history and a distinctive, fully parenthesized prefix notation.

New!!: Return statement and Lisp (programming language) · See more »

List (abstract data type)

In computer science, a list or sequence is an abstract data type that represents a countable number of ordered values, where the same value may occur more than once.

New!!: Return statement and List (abstract data type) · See more »

Martin Fowler

Martin Fowler (born 1963) is a British software developer, author and international public speaker on software development, specializing in object-oriented analysis and design, UML, patterns, and agile software development methodologies, including extreme programming.

New!!: Return statement and Martin Fowler · See more »

MOS Technology 6502

The MOS Technology 6502 (typically "sixty-five-oh-two" or "six-five-oh-two") William Mensch and the moderator both pronounce the 6502 microprocessor as "sixty-five-oh-two".

New!!: Return statement and MOS Technology 6502 · See more »

Null device

In some operating systems, the null device is a device file that discards all data written to it but reports that the write operation succeeded.

New!!: Return statement and Null device · See more »

Oberon (programming language)

Oberon is a general-purpose programming language created in 1986 by Niklaus Wirth and the latest member of the Wirthian family of ALGOL-like languages (Euler, Algol-W, Pascal, Modula, and Modula-2).

New!!: Return statement and Oberon (programming language) · See more »

Object (computer science)

In computer science, an object can be a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by an identifier.

New!!: Return statement and Object (computer science) · See more »

Parameter (computer programming)

In computer programming, a parameter (often called formal parameter or formal argument) is a special kind of variable, used in a subroutine to refer to one of the pieces of data provided as input to the subroutine.

New!!: Return statement and Parameter (computer programming) · See more »

Pascal (programming language)

Pascal is an imperative and procedural programming language, which Niklaus Wirth designed in 1968–69 and published in 1970, as a small, efficient language intended to encourage good programming practices using structured programming and data structuring. It is named in honor of the French mathematician, philosopher and physicist Blaise Pascal. Pascal was developed on the pattern of the ALGOL 60 language. Wirth had already developed several improvements to this language as part of the ALGOL X proposals, but these were not accepted and Pascal was developed separately and released in 1970. A derivative known as Object Pascal designed for object-oriented programming was developed in 1985; this was used by Apple Computer and Borland in the late 1980s and later developed into Delphi on the Microsoft Windows platform. Extensions to the Pascal concepts led to the Pascal-like languages Modula-2 and Oberon.

New!!: Return statement and Pascal (programming language) · See more »

Perl

Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages, Perl 5 and Perl 6.

New!!: Return statement and Perl · See more »

PHP

PHP: Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for Web development, but also used as a general-purpose programming language.

New!!: Return statement and PHP · See more »

Pipeline (Unix)

In Unix-like computer operating systems, a pipeline is a sequence of processes chained together by their standard streams, so that the output of each process (stdout) feeds directly as input (stdin) to the next one.

New!!: Return statement and Pipeline (Unix) · See more »

PowerShell

PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.

New!!: Return statement and PowerShell · See more »

Process (computing)

In computing, a process is an instance of a computer program that is being executed.

New!!: Return statement and Process (computing) · See more »

Python (programming language)

Python is an interpreted high-level programming language for general-purpose programming.

New!!: Return statement and Python (programming language) · See more »

Record (computer science)

In computer science, a record (also called a structure, struct, or compound data) is a basic data structure.

New!!: Return statement and Record (computer science) · See more »

Reference (computer science)

In computer science, a reference is a value that enables a program to indirectly access a particular datum, such as a variable's value or a record, in the computer's memory or in some other storage device.

New!!: Return statement and Reference (computer science) · See more »

Return code

In computer programming, a return code or an error code is an enumerated message that corresponds to the status of a specific software application.

New!!: Return statement and Return code · See more »

Return type

In computer programming, the return type (or result type) defines and constrains the data type of the value returned from a subroutine or method.

New!!: Return statement and Return type · See more »

Ruby (programming language)

Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language.

New!!: Return statement and Ruby (programming language) · See more »

S-algol

S-algol (St Andrews Algol) is a computer programming language derivative of ALGOL 60 developed at the University of St Andrews in 1979 by Ron Morrison and Tony Davie.

New!!: Return statement and S-algol · See more »

Smalltalk

Smalltalk is an object-oriented, dynamically typed, reflective programming language.

New!!: Return statement and Smalltalk · See more »

Source code

In computing, source code is any collection of code, possibly with comments, written using a human-readable programming language, usually as plain text.

New!!: Return statement and Source code · See more »

Spaghetti code

Spaghetti code is a pejorative phrase for unstructured and difficult to maintain source code, broadly construed.

New!!: Return statement and Spaghetti code · See more »

Statement (computer science)

In computer programming, a statement is a syntactic unit of an imperative programming language that expresses some action to be carried out.

New!!: Return statement and Statement (computer science) · See more »

String (computer science)

In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable.

New!!: Return statement and String (computer science) · See more »

Struct (C programming language)

A struct in the C programming language (and many derivatives) is a composite data type (or record) declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer, or the struct declared name which returns the same address.

New!!: Return statement and Struct (C programming language) · See more »

Structured programming

Structured programming is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection (if/then/else) and repetition (while and for), block structures, and subroutines in contrast to using simple tests and jumps such as the go to statement, which can lead to "spaghetti code" that is potentially difficult to follow and maintain.

New!!: Return statement and Structured programming · See more »

Subroutine

In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit.

New!!: Return statement and Subroutine · See more »

Tracing (software)

In software engineering, tracing involves a specialized use of logging to record information about a program's execution.

New!!: Return statement and Tracing (software) · See more »

Type conversion

In computer science, type conversion, type casting, and type coercion are different ways of changing an entity of one data type into another.

New!!: Return statement and Type conversion · See more »

Undefined behavior

In computer programming, undefined behavior (UB) is the result of executing computer code whose behavior is not prescribed by the language specification to which the code adheres, for the current state of the program.

New!!: Return statement and Undefined behavior · See more »

Variable (computer science)

In computer programming, a variable or scalar is a storage location (identified by a memory address) paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value.

New!!: Return statement and Variable (computer science) · See more »

Visual Basic .NET

Visual Basic.NET (VB.NET) is a multi-paradigm, object-oriented programming language, implemented on the.NET Framework.

New!!: Return statement and Visual Basic .NET · See more »

Void type

The Void type, in several programming languages derived from C and Algol68, is the type for the result of a function that returns normally, but does not provide a result value to its caller.

New!!: Return statement and Void type · See more »

X86 assembly language

x86 assembly language is a family of backward-compatible assembly languages, which provide some level of compatibility all the way back to the Intel 8008 introduced in April 1972.

New!!: Return statement and X86 assembly language · See more »

Redirects here:

Procedure return, Return (instruction), Return address (computing), Return from procedure, Return instruction, Return statements, Return value.

References

[1] https://en.wikipedia.org/wiki/Return_statement

OutgoingIncoming
Hey! We are on Facebook now! »