answersLogoWhite

0

When in the switch none of the case's is true, the code at the default: is executed.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is regular grammar of a switch in C programming language?

Perhaps you meant 'switch statement' instead of 'a switch'?Something like this: -> -> switch () -> { } -> (empty) | -> []; -> | -> case: | default: -> | break;


What is case select in c language?

It is switch-case. Example: switch (opsign) { case '+': . result = a + b; . break; case '-': . result = a - b; . break; ... default: . printf ("opsign=%c unknown\n", opsign); }


Which is the default parameter passing technique in c plus plus language?

The default is to pass by value.


What is the last value of case in switch in c?

I guess you mean 'default'


Multiple default statements in switch statement in c?

I really think this is not possible.


What is the mean of switch in c language?

switch is a mechanism provided in the C language through which we can select one among various constant option based on value of a single event.


Calling a function from switch in C?

Yes, you can call a function from within a switch statement in C. switch (i) { case 0: function1(i); break; case 1: function2(i); break; default: function3(i); break; } When the function returns, you will still be in the switch statement.


Which header file by default included in c language?

None, but there are some predefined defines, like __STDC__


What is the default scripting language in ASP?

Default scripting language in ASP is VB Script


Is WikiAnswers default language English UK or English US?

US English is the default language for WikiAnswers.


How do you change language in SolidWorks?

if you installed English as the default language, and others language as secondaries (ex: Spanish or russian) during the installation? you can change the language, but if you didn't installed secondaries language you will to able to change. for ex, i have english as default language, if i want to change to spanish, just go to: C\program files\Solidworks\lang there rename the folder "English" with Spanish, and the folder "Spanish" rename with "English"


What is the use of Default statement in switch case?

C++ Provides a multiple branch selection called as switch. This selection statement succesively test against a list of integer or character constants. When a match is found the statements associate with constants are executed. When no match is found default statement is used.