Skip to main content

Posts

Showing posts from September, 2018

Switch Statements in C++

Switch is a conditional branching statement which is used to check many cases according to the value of a variable. It contains a variable with the switch statement in beginning, lots of statement block with case statement in between, and default statement with default statement at the end. Here all the cases are checked with the value of variable one by one from the beginning. If any case matches the value of variable, then the statement block written under that case is executed. And if any case does not match the value of variable then the default statement block is executed at the end. Its syntax comes from the following two types:
switch एक conditional branchingstatement है जिसका प्रयोग एक variable की value के अनुसार बहुत सारे case को चेक करने के लिए किया जाता है। इसकी शुरूआत में switch statement के साथ एक variable होता है, बीच में case statement के साथ बहुत सारे statementblock होते है और अंत में defaultstatement के साथ defaultstatementblock होता है। इसमें शुरूआत से एक-एक करके va…

Switch Statements in C

Switch is a conditional branching statement which is used to check many cases according to the value of a variable. It contains a variable with the switch statement in beginning, lots of statement block with case statement in between, and default statement with default statement at the end. Here all the cases are checked with the value of variable one by one from the beginning. If any case matches the value of variable, then the statement block written under that case is executed. And if any case does not match the value of variable then the default statement block is executed at the end. Its syntax comes from the following two types:
switch एक conditional branchingstatement है जिसका प्रयोग एक variable की value के अनुसार बहुत सारे case को चेक करने के लिए किया जाता है। इसकी शुरूआत में switch statement के साथ एक variable होता है, बीच में case statement के साथ बहुत सारे statementblock होते है और अंत में defaultstatement के साथ defaultstatementblock होता है। इसमें शुरूआत से एक-एक करके va…

if statements in C++

if statement
if is a conditional branching statement which is used to check a condition. There is a true statement block in it. If the given condition is true then the statements written in the true statement block are executed. And if the given condition is false then the statements written in the true statement block are not executed. Its syntax is as follows:
if एक conditional branchingstatement है जिसका प्रयोग किसी एक condition को चेक करने के लिए किया जाता है। इसमें एक true statement block होता है। यदिदिया गया conditiontrue होता है तो truestatement block में लिखे statementsexecute होते है। और यदिदिया गया condition false होता है तो truestatement block में लिखे statementsexecute नहींहोते है। इसका syntax निम्नलिखित प्रकार से होता है—
if (condition) { true statement block; }

if else statement
if else statement is also used to check a condition. But there is both a true statement block and a false statement block in it. If condition is true then the statements written in the true statemen…

if statements in C

if statement
if is a conditional branching statement which is used to check a condition. There is a true statement block in it. If the given condition is true then the statements written in the true statement block are executed. And if the given condition is false then the statements written in the true statement block are not executed. Its syntax is as follows:
if एक conditional branchingstatement है जिसका प्रयोग किसी एक condition को चेक करने के लिए किया जाता है। इसमें एक true statement block होता है। यदिदिया गया conditiontrue होता है तो truestatement block में लिखे statementsexecute होते है। और यदिदिया गया condition false होता है तो truestatement block में लिखे statementsexecute नहींहोते है। इसका syntax निम्नलिखित प्रकार से होता है—
if (condition) { true statement block; }

if else statement
if else statement is also used to check a condition. But there is both a true statement block and a false statement block in it. If condition is true then the statements written in the true statemen…