I saw this
i >= 5
but I also saw this
i => 5
What's the difference?
'Greater than' means that some variable or number can have any value that is greater than the given limit. Whereas the 'greater than or equal to' symbol states that the number or variable can be equal to or more than the given limit.
Greater than or equal to sign: ≥ This is because ≥ does not denote a strict inequality. This is the only difference between ">" and "≥".
+ is an arithmetic operator while += is an assignment operator.. When += is used, the value on the RHS will be added to the variable on the LHS and the resultant value will be assigned as the new value of the LHS..
== is used for comparison between two variables irrespective of the datatype of variable. === is used for comparision between two variables but this will check strict type, which means it will check datatype and compare two values.
=> on MSDN The => token is called the lambda operator. It is used in lambda expressions to separate the input variables on the left side from the lambda body on the right side. Lambda expressions are inline expressions similar to anonymous methods but more flexible; they are used extensively in LINQ queries that are expressed in method syntax. For more information, see Lambda Expressions (C# Programming Guide).
>= on MSDN All numeric and enumeration types define a "greater than or equal" relational operator, >= that returns true if the first operand is greater than or equal to the second, false otherwise.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With