Operator (computer programming): Difference between revisions

Content deleted Content added
Re-organize: put examples in the examples section and move mostly non-example info from examples to the intro
Examples: Use consistent formatting (either both should be lists or neither; I picked both)
Line 43:
{{category see also|Operators (programming)}}
 
Examples of infix operators include:
Examples of infix operators include [[arithmetic]] (e.g. addition as <code>a+b</code>), [[relational operator|relational]] (e.g. [[Greater-than sign|greater than]] as <code>a&gt;b</code>), [[Mathematical logic|logic]] (e.g. <code>a AND b</code> or <code>a&amp;&amp;b</code>), [[Assignment (computer science)|assignment]] (e.g. <code>a=b</code> or <code>a:=b</code>), [[Record (computer science)|record]] or [[Object (computer science)|object]] [[Field (computer science)|field]] access (e.g. <code>a.b</code>), and [[scope resolution operator|scope resolution]] (e.g. <code>a::b</code> or <code>a.b</code>).
* [[Arithmetic]]: such as addition, <code>a+b</code>
* [[Relational operator|relational]]: such as [[Greater-than sign|greater than]], <code>a&gt;b</code>
* [[Mathematical logic|Logic]]: such as <code>a AND b</code> or <code>a&amp;&amp;b</code>
* [[Assignment (computer science)|Assignment]]: such as <code>a=b</code> or <code>a:=b</code>
* [[Record (computer science)|Record]] or [[Object (computer science)|object]] [[Field (computer science)|field]] access: such as <code>a.b</code>
* [[scope resolution operator|Scope resolution]]: such as <code>a::b</code> or <code>a.b</code>
 
Less common operators include: