SAMIR UDDIN

Hello guys welcome to my web blog ,my very special blog gives you latest technical knowledges and I want to proviod you quality and short posts .If you need any type of posts please tell me in comment section,If anybody have some questions related to my posts please tell me at https://www.samirmd.blogspot.com https://www.youtube.com/channel/UC4k3h0R2H8HVSQqAbuYY27Q https://www.facebook.com/mdsamir.shaikh.948

Latest Tweets

LightBlog
Responsive Ads Here

Friday, August 4, 2017

Operatoers in C Programming

Operators in C Programming

Arithmetic operators

 Multiply(*)
 Divide(/)
 Addition(+)
 Subtraction(-)
 Modulus(%)

Relational operator

Less than(<)
Greater than(>)
Less than equal to(<=)
Greater than equal to(>=)

Equality operator 

Equal to(==)
Not equal to(!=)

Logical operator

Logical AND (&&) 
Logical OR (||)

Unary operator


Increment operator (++)   ,  Decrement operator  (--)
Eg/    x=i++=i+1                                    x=x--=x-1  
let i=5                                        let i=5
i++=i+1=5+1=6                           i--=i-1=5-1=4

Conditional operator


exp 1 ? exp 2 : exp 3

         eg/   Large=(a>b) ? a : b    //like a if-else condition

Assignment  operator

eg/  int x
  x=10;
  x=3,y=2;
  sum=x + y;      //x=5

Sizeof  operator

 Eg /   int a=10
                result= sizeof (a) ;     //result =2 byte

Bitwise operator

§Perform operation at the bit level like bitwise OR,bitwise AND,bitwise XOR etc
Eg   10101010   10101010=11111111

No comments:

Post a Comment