answersLogoWhite

0


Best Answer

If statement is single selection statement,whereas the switch statement is multiple selective.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the deffernce of the switch statement and the if statement in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the function of visual c plus plus switch condition?

The switch / case statement.


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


Which statement is not frequently used in C plus plus?

The goto statement.


Control statement in c plus plus?

Control statements are statements that alter the flow of execution according to the evaluation of an expression (the condition). The C++ control statements are ifstatements, switch statements and the tertiary conditional operator, ?:.


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.


Basic control structure available in c plus plus?

The basic control structure in C++ is the if statement.


What is the purpose of break statement in c?

The break statement exits control of the innermost for, while or do-while loop, or switch statement.


A c plus plus statement that invokes a function is known as?

...a function call.


Which statement in C plus plus is used to implement a decision structure in its simplest form-that of choosing between two alternatives?

if (condition) statement else statement;


What are the three selection structures available in C plus plus?

if while switch


What is the character used at the end of executable statements in C plus plus?

The semi-colon converts a C++ expression into a statement.


What is break in c?

The break statement is used to exit a loop or switch-case.