Tagged: c if else

if else in C programming 36

if else in C programming

Let us understand if-else statement in C programming language. if-else statement is a decision making statement used to execute certain set of statements based on the condition value. Syntax of if-else in C: if(condition){ /*1st block of statements*/ } else{ /*2nd block of statements*/ } Here, if and else are the keywords in C. The keyword if tells the compiler that what follows is decision control statement. The block of statements to be executed must be enclosed in opening and closing braces. If only one statement needs to be executed then braces need not be used. In if-else statement, condition...

FREE C Programming Cheatsheet

FREE C Programming Cheatsheet

 

Cheatsheet for a quick glance at C programming concepts and syntax

Thank you! Check you inbox and access your cheat-sheet