Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Dashboard

Operators in C language. Part 1 (module 10)

In this section we will discuss on the different operators in C and there uses and functions in any C program

Do you have similar website/ Product?
Show in this page just for only $2 (for a month)
Create an Ad
0/60
0/180
This is the 10th module on learning C with us. Earlier we discussed on the basic introduction and structure of C, preprocessor it's features, intermediate and executable codes. compilation and execution process of a C program. And keywords and identifiers, data types, variables and constants, scope of variables.
 In this section we will discuss on our next topic and most important concepts on the different  operators in C program.
Operators in #C :-
An operator is an symbol that tells the compiler to perform certain mathematical or logical manipulations. C operators can be classified as :
  • Arithmetic operators
  • Relational operators.
  • Logical operators.
  • Assignment operators.
  • Increment or decrement operators.
  • Conditional operators.
  • Bitwise operators.
  • Special operators.
Arithmetic operators :-
All the basic arithmetic operators present in C are :
Operators meaning
+
Add
-subtract
*Multiplication 
/Division 
%Modulo division (remainderl
main()
{ int a=2,b=3,c;
  c=a+b;
  printf("sum=%d",c);
}
Relational operators :-
We often compare two quantities & depending on their relation take certain decision for that comparison we use relational operators.
It is in the form of ae-1 relational_operator ae-2.
Operators meaning 
<is less than
>is greater than
<=is less than or equal to
>=is greater than or equal to
==is equal to
!=is not equal to

Logical operators :-
An expression of this kind which combines two or more relational expressions is termed as a logical expressions or a compound relational expression. The operator & truth values are given below :
Op-1Op-2Op-1 && Op-2Op-1 || Op-2
1111
1001
0101
0000

Op-1! Op-1
10
01

In next module we will continue on the next operaters in any C language. For more information please be updated with us as we provide all the modules and cover all the topics regarding #C. Only on Www.newsandstory.com 
CONTINUE READING
C operators
meaning
uses
logic
programs
Programming
learning
coding
Dalpat I
Content writer