***WELCOME TO MY BLOG ** More information about me Click Here.

Saturday, April 30, 2016

C এর বিভিন্ন OPERATOR

আজ আমি C এর বিভিন্ন Operator নিয়ে আলোচনা করবো



C তে যে সব ক্যারেকটারগুলো operator হিসাবে ব্যবহার করা হয় তা হল,

+   -   *   /   %

<   >   <=    >=   !=   ==

!  &&   ||

~   &   |   ^   <<   >>

=    ++   --  +=   -=   *=   /=    %=   |=    &=    ^=    <<=    >>=

?:

এসব ক্যারেকটার বা অপারেটরগুলো প্রোগ্রামের ডাটা তথা ভেরিয়েবল, কন্সট্যান্টস প্রভৃতিকে অপারেন্ড হিসাবে ব্যবহার করে এবং এদের কাজ করার উপর ভিত্তি করে এদেরকে নীচের মত বিভিন্নভাগে ভাগ করা যায়,



Operator type
Operator
bvg

+
Addition

-
Subtraction
Arithmetic operators
*
Multiplication

/
Division

%
Modulus




Greater than

Less than
Relational operators
>=
Greater than or equal to

<=
Less than or equal to

!=
Not equal to

==
Equal to




!
NOT
Logical operators
&&
AND

||
OR




~
Bitwise complement

&
Bitwise AND

|
Bitwise OR
Bitwise operators
^
Bitwise XOR

<< 
Left shift

>> 
Right shift




=
Assignment

++
Increment and assignment

--
decrement and assignment

+=
Add and assign

-=
Subtract and assign

*=
Multiply and assign

/=
Divide and assign

%=
Take modulus and assign
Assignment operators
|=
Bitwise OR and assign

&=
Bitwise AND and assign

^=
Bitwise XOR and assign

<<=
Left shift and assign

>>=
Right shift and assign



Selection operators
?:
If-then-else

1 comment: