Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-11-2008
Member
 
Join Date: Nov 2008
Posts: 30
Want info on C# Operators

Hello friends,

I want some information about C# Operators. I just start learning C#.

Thanks
Reply With Quote
  #2  
Old 03-11-2008
Member
 
Join Date: Jul 2008
Posts: 92
C# Operators

C# provides a large set of operators, which are symbols that specify which operations to perform in an expression. C# predefines the usual arithmetic and logical operators, as well as a variety of others as shown in the following table.

Arithmetic + - * / %

The arithmetic operators (+, -, *, /) can produce results that are outside the range of possible values for the numeric type involved.
Integer arithmetic overflow either throws an OverflowException or discards the most significant bits of the result (see below). Integer division by zero always throws a DivideByZeroException.

Logical (boolean and bitwise) & | ^ ! ~ && || true false

String concatenation +

Increment, decrement ++ --

Shift << >>

Relational == != < > <= >=

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

Indexing []

Cast ()

Conditional ?:
Reply With Quote
  #3  
Old 03-11-2008
Member
 
Join Date: Jul 2008
Posts: 99
Re: Want info on C# Operators

Most operators are either unary or binary. Unary operators form expressions on a single variable, but binary operators form expressions with two variables.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Want info on C# Operators"
Thread Thread Starter Forum Replies Last Post
How to use an Operators in PHP? Mr.ken Software Development 5 05-03-2010 06:23 AM
php operators and keywords Fragman Software Development 5 26-02-2010 06:15 PM
What are the Operators and Expressions in C# ? kyosang Software Development 4 09-02-2010 06:32 AM
overloading of operators in C++ shilong Software Development 3 28-01-2009 10:30 PM
Using new and delete Operators in C++ Rahul45 Software Development 1 10-12-2008 01:31 PM


All times are GMT +5.5. The time now is 05:48 AM.