|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Want info on C# Operators
Hello friends, I want some information about C# Operators. I just start learning C#. Thanks |
#2
| |||
| |||
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 ?: |
#3
| |||
| |||
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. |
![]() |
|
Tags: c operators |
Thread Tools | Search this Thread |
|
![]() | ||||
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 |