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

Switch statement

Index Switch statement

In computer programming languages, a switch statement is a type of selection control mechanism used to allow the value of a variable or expression to change the control flow of program execution via a multiway branch. [1]

56 relations: Ada (programming language), Algorithmic efficiency, Assembly language, BASIC, Binary search algorithm, Branch table, C (programming language), C Sharp (programming language), C++, Clang, Conditional (computer programming), Control flow, Control flow graph, Control table, Cyclomatic complexity, Duff's device, Duplicate code, Exception handling, Fortran, Functional programming, George Boolos, GNU Compiler Collection, Goto, Heuristic, High-level programming language, Imperative programming, Instruction path length, Java (programming language), JavaScript, John P. Burgess, Lookup table, Lua (programming language), Machine code, McCarthy Formalism, Modula-3, Multiway branch, Object Pascal, Optimizing compiler, Pascal (programming language), Pattern matching, Perfect hash function, Perl, PHP, PL/I, Primitive recursive function, Program optimization, Programming language, Python (programming language), Reserved word, Richard Jeffrey, ..., Ruby (programming language), Scala (programming language), Stephen Cole Kleene, Subroutine, Variable (computer science), Visual Basic .NET. Expand index (6 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!!: Switch statement and Ada (programming language) · See more »

Algorithmic efficiency

In computer science, algorithmic efficiency is a property of an algorithm which relates to the number of computational resources used by the algorithm.

New!!: Switch statement and Algorithmic efficiency · 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!!: Switch statement and Assembly language · 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!!: Switch statement and BASIC · See more »

Binary search algorithm

In computer science, binary search, also known as half-interval search,logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array.

New!!: Switch statement and Binary search algorithm · See more »

Branch table

In computer programming, a branch table or jump table is a method of transferring program control (branching) to another part of a program (or a different program that may have been dynamically loaded) using a table of branch or jump instructions.

New!!: Switch statement and Branch table · 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!!: Switch 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!!: Switch statement and C Sharp (programming language) · See more »

C++

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

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

Clang

Clang is a compiler front end for the programming languages C, C++, Objective-C, Objective-C++, OpenMP, OpenCL, and CUDA.

New!!: Switch statement and Clang · See more »

Conditional (computer programming)

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

New!!: Switch statement and Conditional (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!!: Switch statement and Control flow · See more »

Control flow graph

A control flow graph (CFG) in computer science is a representation, using graph notation, of all paths that might be traversed through a program during its execution.

New!!: Switch statement and Control flow graph · See more »

Control table

Control tables are tables that control the control flow or play a major part in program control.

New!!: Switch statement and Control table · See more »

Cyclomatic complexity

Cyclomatic complexity is a software metric, used to indicate the complexity of a program.

New!!: Switch statement and Cyclomatic complexity · See more »

Duff's device

In the C programming language, Duff's device is a way of manually implementing loop unrolling by interleaving two syntactic constructs of C: the - loop and a switch statement.

New!!: Switch statement and Duff's device · See more »

Duplicate code

Duplicate code is a computer programming term for a sequence of source code that occurs more than once, either within a program or across different programs owned or maintained by the same entity.

New!!: Switch statement and Duplicate code · 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!!: Switch statement and Exception handling · 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!!: Switch statement and Fortran · See more »

Functional programming

In computer science, functional programming is a programming paradigm—a style of building the structure and elements of computer programs—that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data.

New!!: Switch statement and Functional programming · See more »

George Boolos

George Stephen Boolos (September 4, 1940 – May 27, 1996) was an American philosopher and a mathematical logician who taught at the Massachusetts Institute of Technology.

New!!: Switch statement and George Boolos · See more »

GNU Compiler Collection

The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages.

New!!: Switch statement and GNU Compiler Collection · 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!!: Switch statement and Goto · See more »

Heuristic

A heuristic technique (εὑρίσκω, "find" or "discover"), often called simply a heuristic, is any approach to problem solving, learning, or discovery that employs a practical method, not guaranteed to be optimal, perfect, logical, or rational, but instead sufficient for reaching an immediate goal.

New!!: Switch statement and Heuristic · See more »

High-level programming language

In computer science, a high-level programming language is a programming language with strong abstraction from the details of the computer.

New!!: Switch statement and High-level programming language · See more »

Imperative programming

In computer science, imperative programming is a programming paradigm that uses statements that change a program's state.

New!!: Switch statement and Imperative programming · See more »

Instruction path length

In computer performance, the instruction path length is the number of machine code instructions required to execute a section of a computer program.

New!!: Switch statement and Instruction path length · 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!!: Switch statement and Java (programming language) · See more »

JavaScript

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

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

John P. Burgess

John Patton Burgess (born 5 June 1948) is a John N. Woodhull Professor of Philosophy at Princeton University.

New!!: Switch statement and John P. Burgess · See more »

Lookup table

In computer science, a lookup table is an array that replaces runtime computation with a simpler array indexing operation.

New!!: Switch statement and Lookup table · See more »

Lua (programming language)

Lua (from meaning moon) is a lightweight, multi-paradigm programming language designed primarily for embedded use in applications.

New!!: Switch statement and Lua (programming language) · See more »

Machine code

Machine code is a computer program written in machine language instructions that can be executed directly by a computer's central processing unit (CPU).

New!!: Switch statement and Machine code · See more »

McCarthy Formalism

In computer science and recursion theory the McCarthy Formalism (1963) of computer scientist John McCarthy clarifies the notion of recursive functions by use of the IF-THEN-ELSE construction common to computer science, together with four of the operators of primitive recursive functions: zero, successor, equality of numbers and composition.

New!!: Switch statement and McCarthy Formalism · See more »

Modula-3

Modula-3 is a programming language conceived as a successor to an upgraded version of Modula-2 known as Modula-2+.

New!!: Switch statement and Modula-3 · See more »

Multiway branch

Multiway branch is the change to a program's control flow based upon a value matching a selected criteria.

New!!: Switch statement and Multiway branch · See more »

Object Pascal

Object Pascal refers to a branch of object-oriented derivatives of Pascal, mostly known as the primary programming language of Delphi.

New!!: Switch statement and Object Pascal · See more »

Optimizing compiler

In computing, an optimizing compiler is a compiler that tries to minimize or maximize some attributes of an executable computer program.

New!!: Switch statement and Optimizing compiler · 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!!: Switch statement and Pascal (programming language) · See more »

Pattern matching

In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern.

New!!: Switch statement and Pattern matching · See more »

Perfect hash function

In computer science, a perfect hash function for a set is a hash function that maps distinct elements in to a set of integers, with no collisions.

New!!: Switch statement and Perfect hash function · See more »

Perl

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

New!!: Switch 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!!: Switch statement and PHP · See more »

PL/I

PL/I (Programming Language One, pronounced) is a procedural, imperative computer programming language designed for scientific, engineering, business and system programming uses.

New!!: Switch statement and PL/I · See more »

Primitive recursive function

In computability theory, primitive recursive functions are a class of functions that are defined using primitive recursion and composition as central operations and are a strict subset of the total µ-recursive functions (µ-recursive functions are also called partial recursive).

New!!: Switch statement and Primitive recursive function · See more »

Program optimization

In computer science, program optimization or software optimization is the process of modifying a software system to make some aspect of it work more efficiently or use fewer resources.

New!!: Switch statement and Program optimization · See more »

Programming language

A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output.

New!!: Switch statement and Programming language · See more »

Python (programming language)

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

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

Reserved word

In a computer language, a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use".

New!!: Switch statement and Reserved word · See more »

Richard Jeffrey

Richard Carl Jeffrey (August 5, 1926 – November 9, 2002) was an American philosopher, logician, and probability theorist.

New!!: Switch statement and Richard Jeffrey · See more »

Ruby (programming language)

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

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

Scala (programming language)

Scala is a general-purpose programming language providing support for functional programming and a strong static type system.

New!!: Switch statement and Scala (programming language) · See more »

Stephen Cole Kleene

Stephen Cole Kleene (January 5, 1909 – January 25, 1994) was an American mathematician.

New!!: Switch statement and Stephen Cole Kleene · See more »

Subroutine

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

New!!: Switch statement and Subroutine · 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!!: Switch 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!!: Switch statement and Visual Basic .NET · See more »

Redirects here:

Case statement, Decode (Oracle), Fallthrough switch, Inspect statement, Select case, Select statement, Switch (programming), Switch case, Switch-case.

References

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

OutgoingIncoming
Hey! We are on Facebook now! »