View Post

Function Prototype

In C Language by Baqir Ali1 Comment

A function prototype is also called function declaration. It comes to use when the user defined function is defined after the main function in program then we use function prototype. …

View Post

Function in C

In C Language by Baqir Ali

We have seen that C supports the use of predefined library functions which are used to carry out a large number of commonly occurring tasks. A function is a self-contained …

View Post

Do While Loop

In C Language by Baqir Ali

When a loop is constructed using a while statement, the test for the continuation of the loop is carried out at the beginning of each pass. Sometimes however, it is …

View Post

While Loop

In C Language by Baqir AliLeave a Comment

Situations in which the number of passes through the loop is not known in advance are often best dealt with using a while loop. The general form of a while …

View Post

For Loop

In C Language by Baqir AliLeave a Comment

Situations in which the number of passes through the loop is known in advance are often best dealt with using a for statement. The general form of a for statement …

View Post

Loop

In C Language by Baqir AliLeave a Comment

A loop allows a program to repeat a group of statements any number of times, or until some loop condition occurs. Commonly known as iterative or repetition statements: Counting Loops …

View Post

Switch Statement

In C Language by Baqir AliLeave a Comment

The switch statement is a multi way conditional statement generalizing the if-else statement. The switch statement evaluates the value of an expression and branches to one of the case labels. …

View Post

Conditional Expressions

In C Language by Baqir AliLeave a Comment

As we have seen, the following logical, relational and equality operators exist in C: Logical Relational Equality These operators are used in conjunction with decision and control statements. For Example …