This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Relational Operators in C Language Examples

Relational Operators in C Language


In this topic of Relational operators in C Language  , we will list Relational operators available in C Language. Like other programming languages, C Language also have Relational operators to perform various relational operations like less than, greater than, equal to  , not equal to etc.

Relational Operators in C Language 1

Relational Operators in C Language



Lets us explore all the C Language Relational operators one by one.


Less than (<) Operator of C language


This is one of the Relational Operators of C language.

To check which value is less among two values, we can use less than(<) operator .

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than B or not.

For this we have to use if statement like this, if(A<B)

For above values of A and B, the result will True.

If the value of A=15 and B=5, then the result will be False.




Greater than (>) Operator of C language


To check which value is greater among two values, we can use greater than(>) operator .

For Example

Suppose value of A =5, value of B=15

We can check if value of A is greater than B or not.

For this we have to use if statement like this, if(A>B)

For above values of A and B, the result will False.

If the value of A=15 and B=5, then the result will be True.



Less than or equal to (<=) Operator of C language


To perform this operation, we will <= operator.

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than or equal to  B or not.

For this we have to use if statement like this, if(A<=B)

For above values of A and B, the result will True.



If the value of A=15 and B=5, then the result will be False.

Greater than or equal to (>=) Operator of C language


To perform this operation, we will >= operator.

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than or equal to  B or not.

For this we have to use if statement like this, if(A>=B)

For above values of A and B, the result will False.

If the value of A=15 and B=5, then the result will be True.

Equal to (==)Operator of C language


The equal to operator is useful to check the equality of two values.


For Example

Suppose value of A =5, value of B=15


We can check if value of A is equal to  B or not.

For this we have to use if statement like this, if(A==B)


For above values of A and B, the result will False.

If the value of A=5 and B=5, then the result will be True.

 Not Equal to (!=)Operator of C language



The equal to operator is useful to check the in equality of two values.


For Example

Suppose value of A =5, value of B=15


We can check if value of A is equal to  B or not.

For this we have to use if statement like this, if(A!=B)


For above values of A and B, the result will True.

If the value of A=5 and B=5, then the result will be False.












C Language Operators with examples

C Language Operators


C language is highly enriched in operators. We have arithmetic, relational, logical and many more types of operators in C language. According the operations performed by operators, the operators are classified in different categories. Following are the main categories of operators in C language.

C Language Operators with examples 1


  • Arithmetic Operators 

In arithmetic operators, c Language have operator for addiiton, subtraction, multiplication, division and modulus operation.

  • Relational Operators

  • Logical Operators

  • Bit-wise Operators

  • Pointer Operators

  • Conditional Operator

  •  Incrementation Operator

  •  Decrementation Operator

Arithmetic Operators in C Language


In this topic of Arithmetic Operators in C Language  , we will list arithmetic operators available in C Language. Like other programming languages, C Language also have arithmetic operators to perform various arithmetic operations like addition, subtraction, division , multiplication and exponentiation. We do not have exponentiation operator in C Language.


Lets us explore all the C Language arithmetic operators one by one.


Operator for Addition in C Language

To perform addition operation we need plus operator. The operator for addition is ( + ) sign.


Suppose you wants to add two variables say A and B and result of the addition is to be stored in variable C.

C=A+B


Operator for Subtraction in C Language

To perform subtraction operation we need minus operator. The operator for subtraction is ( – ) sign.


Suppose you wants to subtract value of  variable A from variable  B and result of the subtraction is to be stored in variable C.

C=B-A


Operator for Multiplication in C Language

To perform multiply operation we need multiplication operator. The operator for multiplication is ( * ) sign.


Suppose you wants to multiply value of  variable A with value of  variable  B and result of the multiplication is to be stored in variable C.

C=A*B
Operator for Division in C Language

To divide value of a variable by value of some other variable we need division operator . The operator for division is ( / ) sign.

Suppose you wants to divide value of  variable A by the value of  variable  B and result of the division is to be stored in variable C.

C=A/B

Modulus Operator of C Language

Modulus operator of C Language is (%).
When a number is divided by another number , the modulus operator returns remainder of this division.



Relational Operators in C Language


In this topic of Relational operators in C Language  , we will list Relational operators available in C Language. Like other programming languages, C Language also have Relational operators to perform various relational operations like less than, greater than, equal to  , not equal to etc.


Lets us explore all the C Language Relational operators one by one.


Less than (<) Operator of C language


This is one of the Relational Operators of C language.

To check which value is less among two values, we can use less than(<) operator .

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than B or not.

For this we have to use if statement like this, if(A<B)

For above values of A and B, the result will True.

If the value of A=15 and B=5, then the result will be False.




Greater than (>) Operator of C language


To check which value is greater among two values, we can use greater than(>) operator .

For Example

Suppose value of A =5, value of B=15

We can check if value of A is greater than B or not.

For this we have to use if statement like this, if(A>B)

For above values of A and B, the result will False.

If the value of A=15 and B=5, then the result will be True.




Less than or equal to (<=) Operator of C language


To perform this operation, we will <= operator.

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than or equal to  B or not.

For this we have to use if statement like this, if(A<=B)

For above values of A and B, the result will True.



If the value of A=15 and B=5, then the result will be False.

Greater than or equal to (>=) Operator of C language


To perform this operation, we will >= operator.

For Example

Suppose value of A =5, value of B=15

We can check if value of A is less than or equal to  B or not.

For this we have to use if statement like this, if(A>=B)

For above values of A and B, the result will False.

If the value of A=15 and B=5, then the result will be True.

Equal to (==)Operator of C language


The equal to operator is useful to check the equality of two values.


For Example

Suppose value of A =5, value of B=15


We can check if value of A is equal to  B or not.

For this we have to use if statement like this, if(A==B)


For above values of A and B, the result will False.

If the value of A=5 and B=5, then the result will be True.

 Not Equal to (!=)Operator of C language



The equal to operator is useful to check the in equality of two values.


For Example

Suppose value of A =5, value of B=15


We can check if value of A is equal to  B or not.

For this we have to use if statement like this, if(A!=B)


For above values of A and B, the result will True.

If the value of A=5 and B=5, then the result will be False.














 This was all about C Language Operators . You  can share this post on your social media ids like facebook, twitter, linkedin etc.

Top Best 5 Diwali Gifts Ideas For Family and Employees

Top Best 5 Diwali Gifts Ideas For Family and Employees


The basic idea of this post “Top Best 5 Diwali Gifts Ideas For Family and Employees” is give gifting ideas on the occasion of Diwali Festival. Everyone waits for this popular festival throughout the year. On this festival people use to give gifts to their near and dear one’s.




[caption id="attachment_189" align="aligncenter" width="259"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Here we are listing just 5 popular ideas, there could be more ideas too.


Dry Fruits Packs




[caption id="attachment_186" align="aligncenter" width="299"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Biscuits Packs




[caption id="attachment_184" align="aligncenter" width="300"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Artificial Flowers and Pots




[caption id="attachment_185" align="aligncenter" width="225"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Home Furnishing




[caption id="attachment_187" align="aligncenter" width="247"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Cook ware and Serve Ware




[caption id="attachment_188" align="aligncenter" width="225"]Top Best 5 Diwali Gifts Ideas For Family and Employees Top Best 5 Diwali Gifts Ideas For Family and Employees[/caption]

Order By In SQL Query

Order By In SQL Query

 In this post Order By In SQL Query, we will see how to arrange data in ascending or descending order in output of a query.


ORDER BY clause is useful when we wants to arrange the query result in ascending or descending order.


General Syntax of Order By clause


Select col1, col2... from table name order by col name.

Example
Select ecode, ename, ecity from employee order by ecode;

In the output of the query you will see, ecode, ename and ecity column values , the rows will be sorted in ascending order of ecode.

You can arrange rows of result as per any column of the queried table.

You can arrange them by name of the city also. The sql query in this case will be - Select ecode, ename, ecity from employee order by ecity;

By default order by return rows in ascending oder. You can have results in descending order also. For that you have to use desc keyword with order by.

Suppose you wants output in desecending order of cities. The sql query will be like this-Select ecode, ename, ecity from employee order by ecity desc;

 For results in ascending order , you can use the keyword asc. If you donot use any of the keywords from desc and asc, by default sql will assume it as asc.

Top 101 Best Diwali Wishes Quotes in Hindi

Top 101 Best Diwali Wishes Quotes in Hindi








  1. Happy Diwali

  2. May the festival of Lights brings Happiness and prosperity in your life.

  3. May the  light of Diwali enlighten  your Life with  peace,  happiness ,prosperity and good health.

  4. I Pray to God to give U Shanti

  5. I Pray to God to give U Shakti, Sampati and swarup.
    Shuh Deepawali

  6. Shubh Diwali


 

[caption id="attachment_169" align="aligncenter" width="340"]Top 101 Best Diwali Wishes Quotes in Hindi Top 101 Best Diwali Wishes Quotes in Hindi[/caption]