|
|
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.
The syntax for a switch statement in D programming language is as follows:
The following rules apply to a switch statement:
When the above code is compiled and executed, it produces the following result:
|
|
D Programming Language Related Tutorials |
|
---|---|
Teradata Tutorial | C++ Tutorial |
C Tutorial | SAS Programming Tutorial |
Android Tutorial | Java Tutorial |
D Programming Language Related Practice Tests |
|
---|---|
Teradata Practice Tests | C++ Practice Tests |
C Practice Tests | Oracle Practice Tests |
SAS Programming Practice Tests | Android Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.