If statement in C programming

When we need to execute a block of statements only when a given condition is true then we use if statement. In the next tutorial, we will learn C if..else, nested if..else and else..if. C – If statement Syntax of if statement: The statements inside the body of “if” only execute if the given condition … Read more

Multiple Statements within if in C

C Programming Tutorial

It may so happen that in a program we want more than one statement to be executed if the expression following if is satisfied. If such multiple statements are to be executed then they must be placed within a pair of braces as illustrated in the below example. Example: The current year and the year in which … Read more