Content deleted Content added
m {{unreferenced|article|{{subst:DATE}}}} |
m Date/fix the maintenance tags or gen fixes using AWB |
||
Line 1:
{{
'''<code>?:</code>''' is a [[ternary operator]] that is part of the syntax for a basic [[conditional statement|conditional expression]] in several [[programming language]]s including [[C (programming language)|C]], [[Objective-C]], [[C++]], [[C Sharp|C#]], [[D programming language|D]], [[Java (programming language)|Java]], [[JavaScript]], [[Linoleum programming language|Linoleum]], [[Perl]], [[PHP]], [[Tcl]], [[Ruby programming language|Ruby]], and [[Verilog]].
Line 65:
===?: in style guidelines===
Some corporate programming guidelines list the use of the ternary operator as bad practice because it can harm readability and long-term maintainability.{{
[[C preprocessor|#define]] MAX(a, b) (((a)>(b))? (a): (b))
|