What is Operators and Casts in c# [Resolved]

Posted by Jitendrasoft09 under C# on 6/25/2013 | Points: 10 | Views : 926 | Status : [Member] [MVP] | Replies : 3
Hi All,
I want to understand what is Operators and Casts in c#, please explain with example

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: perfectchourasia-9163 on: 6/28/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
An operator is a special symbol which indicates a certain process is carried out. Operators in programming languages are taken from mathematics. Programmers work with data. The operators are used to process data.

Sign operators + -
Arithmetic + - * / %
Logical (boolean and bitwise) & | ^ ! ~ && || true false
String concatenation +
Increment, decrement ++ --
Shift << >>
Relational == != < > <= >=
Assignment = += -= *= /= %= &= |= ^= <<= >>=
Member access .
Indexing []
Cast ()
Ternary ?:
Delegate concatenation and removal + -
Object creation new
Type information as is sizeof typeof
Overflow exception control checked unchecked
Indirection and address * -> [] &
Lambda =>

Cast

Casting variables is not simple. A complicated set of rules resolves casts. In some cases data is lost and the cast cannot be reversed. In others an exception is provoked. Complex conversions are often required.

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 6/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://msdn.microsoft.com/en-us/library/ms173105%28v=vs.80%29.aspx
http://msdn.microsoft.com/en-us/library/6a71f45d%28v=vs.80%29.aspx

If this post helps you mark it as answer
Thanks

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 6/28/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Thanks Satya... nice explanation chourasia...

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response