answersLogoWhite

0


Best Answer

In programming, select case statement is a way to test the inside of a variable. It is used when one knows there is a limited number of things that can be in the variable.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a select case statement used for in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Difference between if statement and select case statement in vbscript?

If statements and Select-Case statements are two similar features that allow for code branching. The difference is that each If statement may compare against different variables and different ranges, while Select-Case statements may only compare against one variable at a time, and must compare against discrete values. Select-Case is therefore a specialized form of If statements, and are more efficient in terms of amount of code used and execution speed when used instead of theequivalentIf-Else statements.


What is the difference between If-else and Switch-case in Java?

The if statement is used to select among two alternatives. It uses a boolean expression todecide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternativeshould be executed.


Which SQL statement is used to extract data from a database?

"SELECT" statement is used to extract the infromation from a database.


Why you use if and else statement in c language program?

There is no "elseif" statement in C. You can only use "else" and "if" separately. This is a good reason for switch/case/break.


How 'if' statement is different from a 'switch' statement in C language?

The if statement is used to select among two alternatives. It uses a boolean expression todecide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternativeshould be executed.


How to sort select and structure information to produce minutes?

In computer programming, selection sort is a tool that can be used to select structure information and sort it. It can also be used to add and delete minutes.


What is the function in toupper in C programming?

toupper is used to change the case of given character to upper case


What is the Select Top clause?

The Select Top clause is a programming command used with SQL or Structured Query Language. SQL is one of the main languages used in managing databases. The Select Top clause is used to specify the number of records to return from a query on the database.


What basic clause in an SQL statement is used to retrieve rows and columns from tables?

The SELECT clause is used to retrieve rows and columns from tables. Ex: Select * from employee


What is the use of break in c programming?

The break statement is used to exit the nearest enclosing scope. Control passes to the first statement that comes after that enclosing scope.


If the switch statement does not have a case label for every value it will cause a runtime error?

There might be unexpected effects, due to the fact that the programmer didn't consider other cases. It is usually safest to set up a default case for "all other values". This would go at the end. Check the syntax for the specific programming language you are using. In some programming languages, omitting this default statement may also generate a compile-time error, at least in certain cases, when the compiler determines that after the switch statement a variable may not have a definite value - and that value is later used. In some programming languages this is known as the "definite assignment rule".


Which keyword should be used in a SELECT statement to retrieve only parts of the result set?

dsfvds