Operator in C#
An operator is a symbol that tell the computer to perform certain mathematical or logical manipulations.Operator are used in programming to manipulate data and variables.They usually form a part of mathematical or logical expressions.
C# support a rich set of operation .C# operator can be classified into a number of a number of related categories as give below.
An operator is a symbol that tell the computer to perform certain mathematical or logical manipulations.Operator are used in programming to manipulate data and variables.They usually form a part of mathematical or logical expressions.
C# support a rich set of operation .C# operator can be classified into a number of a number of related categories as give below.
- Primary operator.
- Unary Operators.
- Arithmatic Operators.
- Relation Operators.
- Logical Operators.
- conditional Operators.
Now the explanation of Operator is givn below one by one..
Primary Operator:=>
- Groping()
- Member.
- Struct Pointer Member Variable ->
- Method call().
- Increment ++.
- Decrement--.
- Constructor call(new();).
- Array stack allocation[].
- Sizeof.
- Checked.
- Unchecked.
Unary Operator's:=>
- +
- -
- !
- ~
- ++
- --
- Type cast.
- *
- &
Airthmatic Operator's:=>
- *
- /
- %
- +
- -
- >>
- <<
Relational operator:=>
When we compare two quantity and depending on their relation take certain decision.For example we may compare the age of two person or the price of two items and so on.These comparisons can be done with the help of relational operator.
- <
- <=
- >
- >=
- ==
- !=
These are relation Operator in C#..
Logical Operator:=>
The logical operators are used when we want to form compound condition by combining two or more relations.For example...
a>&&x==10
- &&
- ||
- !
- &
- |
- ^
Conditional Operators:=>
This operator is used to construct conditional expression of the form.For example...
exp1?exp2:exp3
where exp1,exp2 and exp3 are expressions.
Now you can download the copy of this article in pdf format by just click on below download link...
Now you can download the copy of this article in pdf format by just click on below download link...
I hope this post will help you !!
If still you have some query regarding to this article then please post your comment after that 1 will 100 % reply back you...
2 comments:
can u tell me what is the meaning of #?
v always used dis # in languages c, c++.. with include....so whts meaning y v used dis????????plz tell me na??????????:)
@aditi # is preprocedure directories that is link to the header file like #include in c & C++ and in C# it is only denote a name that is sharp (c sharp) so we say it c sharp ..........
Post a Comment
Hey thanax alot to comment i will revert you back soon...