C and C++ Control Statements - if else switch case

<<Previous

Next >>





C provides the most powerful decision-making control statements. A decision-making control statement allows the user to test one or more conditions. Based on the condition, the program can decide to execute the block of code. The condition can be any relational or logical expression. The condition statement must produce either a true (non-zero or non-null value) value or a false(zero and null value) value.

if else - Flow Chart

Types of Decision Making Control Statement

  • if statements
  • if..else statements
  • Nested if statements
  • if else if ladder
  • switch statements

<< Previous

Next >>




strcat() - String Concatenation        strcmp() - String Compare


strcpy() - String Copy        strlen() - String Length














C and C++ Control Statements - if else switch case

<<Previous

Next >>





C provides the most powerful decision-making control statements. A decision-making control statement allows the user to test one or more conditions. Based on the condition, the program can decide to execute the block of code. The condition can be any relational or logical expression. The condition statement must produce either a true (non-zero or non-null value) value or a false(zero and null value) value.

if else - Flow Chart

Types of Decision Making Control Statement

  • if statements
  • if..else statements
  • Nested if statements
  • if else if ladder
  • switch statements

<< Previous

Next >>






strncat() - String n Concatenation        strlwr() - String Lower       

strncmp() - String n Compare       strncpy() - String n Copy