Tagged: if else c programming

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 Cheatsheet - Speed Up Your C Programming.

FREE C Cheatsheet - Speed Up Your C Programming.

Download a 7-page free cheat sheet for easy and quick access to C Concepts, Snippets, and Syntax.

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