answersLogoWhite

0

Perhaps you meant 'switch statement' instead of 'a switch'?

Something like this:

->

-> switch ()

-> { }

-> (empty) |

-> [];

-> |

-> case: | default:

-> | break;

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

0's and 1s is Low-level programming language?

it is called binary code and this is the lowest level programming language you can track it by looking at a switch or a register in memory


Which programming language is the hardest to study from?

The one you do not know. All programming languages are hard for a beginner, you just have to stick with it for a few years. It is much easier to switch to a new language when you already know one with perhaps the exception being FORTH. I like C the best but others will think differently.


What is BNF for switch case?

BNF, or Backus-Naur Form, is a notation used to express the grammar of programming languages. A switch-case structure can be represented in BNF as follows: <switch-statement> ::= "switch" "(" <expression> ")" "{" <case-clause>* <default-clause>? "}" <case-clause> ::= "case" <constant> ":" <statement>* <default-clause> ::= "default" ":" <statement>* This defines a switch statement consisting of an expression, multiple case clauses, and an optional default clause.


What programming languages use a C switch statement?

There are two programming languages which use a C switch statement. The two languages are C and C++, hence the name C switch statement. There may be more, but those are the most obvious ones


What is the prototype for switch in C programming?

Statements doesn't have prototypes, functions do.

Related Questions

0's and 1s is Low-level programming language?

it is called binary code and this is the lowest level programming language you can track it by looking at a switch or a register in memory


In switch case programming why are some parameters always in brackets?

There are syntax rules that are to be followed in every programming language and similar is the case here. These rules are a part of the Java language specification.


Were is the clutch safety switch located on a 389 peterbilt?

It's the regular clutch position switch at the top of the pedal... the "safe start" feature is a matter of programming in the engine ECM.


What has the author Lurong Wang written?

Lurong Wang has written: 'Investigating language switching in second-language writing' -- subject(s): Chinese speakers, Code switching (Linguistics), Comparative and general Grammar, English language, Grammar, Comparative and general, Second language acquisition, Study and teaching, Switch-reference, Written English


Does txtng affect your spoken grammar?

No, I dont think so. But it does affect how I write. It's also hard for me to switch from my txt language to formal writing.


How can I put a light switch on a timer?

To put a light switch on a timer, you can install a timer switch in place of a regular light switch. This allows you to set specific times for the light to turn on and off automatically. Simply follow the instructions provided with the timer switch for proper installation and programming.


Which programming language is the hardest to study from?

The one you do not know. All programming languages are hard for a beginner, you just have to stick with it for a few years. It is much easier to switch to a new language when you already know one with perhaps the exception being FORTH. I like C the best but others will think differently.


What is BNF for switch case?

BNF, or Backus-Naur Form, is a notation used to express the grammar of programming languages. A switch-case structure can be represented in BNF as follows: <switch-statement> ::= "switch" "(" <expression> ")" "{" <case-clause>* <default-clause>? "}" <case-clause> ::= "case" <constant> ":" <statement>* <default-clause> ::= "default" ":" <statement>* This defines a switch statement consisting of an expression, multiple case clauses, and an optional default clause.


How can I replace a dimmer switch with a regular switch?

To replace a dimmer switch with a regular switch, you will need to turn off the power to the switch at the circuit breaker, remove the dimmer switch from the wall, disconnect the wires from the dimmer switch, connect the wires to the regular switch following the same configuration, and then secure the regular switch in place. Finally, turn the power back on at the circuit breaker to test the new switch.


Which sentence is right switch off the light or switch off light?

(this should be a grammar question) Switch off the light(s).


In command prompt what does the if switch do?

There is not switch called "if". We generally use "if" statement in batch programming in DOS.


How can I change a dimmer switch to a regular switch?

To change a dimmer switch to a regular switch, you will need to turn off the power to the switch at the circuit breaker, remove the dimmer switch, and install a regular switch in its place. Make sure to follow proper safety precautions and consult a professional if needed.