You may encounter situations, when a block of code needs to be executed several number of times. In general, statements are executed sequentially i.e. The first statement in a function is executed first, followed by the second, and so on. But in our programs, there may be a need of doing repetitive work which can be easily done with the help of loops.
Category: C
If…else if…else Statement
In If-else if statements, if ‘if’ condition is true then ‘if’ statement gets executed and if it is false then ‘else if’ condition is checked and if it is true then ‘else if’ gets executed otherwise condition moves to next statement and if all conditions are false then ‘else’ statement gets executed.
If else condition in C programming language
In if-else statement first of all ‘If’ condition is checked and if the condition is true then ‘If’ statement gets executed otherwise ‘else’ statements gets executed. An if statement can be followed by an optional else statement, which executes when the Boolean expression is false.
If condition in c programming language
C Program executes sequentially i.e. line after line but we can change this pattern by entering some condition in it. So, if we put some condition then the flow of execution changes i.e. conditions are checked and then executed accordingly. If the condition found true the statements in conditional area will be executed otherwise it will leave the conditional area and will execute the code next to if skeleton.
Operators in C Programming Language
An Operator is a symbol which is used to perform operations on operands in any programming language. An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. Any calculation and sentencing in any language is performed by these operators. These are used with operands.
Data types in C language
Data types in c refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted. It is a type of data that a variable holds. These are used for assigning a type to a variable.
Tokens in c Language
A ‘C’ program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol. For example, the following C statement consists of four tokens .
What is C Language?
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. It was developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system.