Switch Page

switch



Return to Switch statement, Reserved Words - Keywords, Programming Glossary


* CPP switch - https://en.cppreference.com/w/cpp/keyword/switch - https://en.cppreference.com/w/cpp/language/switch - CPP switch statement

----

* What programming languages support the Reserved Word switch. Answer in MediaWiki syntax with the URL of the official documentation for each language reference.

Here are some programming languages that support the `switch` reserved word along with links to their official documentation:

Programming Languages Supporting 'switch' Keyword


* C - https://devdocs.io/c/language/switch - C Documentation
* CPP | C++ - https://devdocs.io/cpp/language/switch - CPP Documentation
* Java - https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/switch.html Java Documentation]]
* JavaScript - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch JavaScript Documentation]]
* Go - https://golang.org/ref/spec#Switch_statements Go Documentation]]
* TypeScript - https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#using-switch TypeScript Documentation]]
* Swift - https://docs.swift.org/swift-book/ReferenceManual/Statements.html#ID422 Swift Documentation]]
* PHP - https://www.php.net/manual/en/control-structures.switch.php PHP Documentation]]
* Perl - https://perldoc.perl.org/perlsyn.html#Switch-Statements Perl Documentation]]

These languages use the `switch` keyword to perform different actions based on the value of an expression. You can find more details about its usage in each language's documentation.

----

{{wp>switch}}

{{navbar_reserved_words}}

{{navbar_programming}}

{{navbar_footer}}