2074 2

CSC115 ยท 2074 ยท 10 marks

Discuss different types of if statements with suitable example of each.Different if statement with switch statement.[8+2]

Discuss different types of if statements with suitable example of each.Different if statement with switch statement.[8+2]

C ProgrammingChapter 5: Control StatementConditional Statements

(a) Types of if Statements Selection statements (if, if...else, switch) are a category of statements in C that control the flow of execution based on conditions. --- Syntax: Description: If the condition evaluates to true (non-zero), the block of statements inside the braces is executed. If false...