reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Conditional operator - C++ [1/2]

Type:
Conditional operator - C++
Level: Beginner reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia 
Conditional operator - C++
Date: 2006-Dec-04
Conditional operator - C++
Visited: 1034 times
Conditional operator - C++
Rating: Conditional operator - C++
Conditional operator - C++
Author: Alex Plumpton
The Conditional operators '?' and ':' are used to construct conditional expressions. These conditional operators are also called ternary operators. The general form of the conditional expression is shown in the figure.

Conditional operator - C++
The conditional operator works as follows, in the statement shown in the figure, expressionl is evaluated first. If it is true then expression 2 is evaluated and becomes the value of the expression. But, in case if expression 1 is false then expression 3 is evaluated and its value becomes the value of the expression.

Conditional operator - C++
reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia - Conditional operator - C++ [1/2] - reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: conditional operator c++  Conditional operator ?: c++  conditional operator ? : c++  c++ conditional operator  c++ conditional operator  c++ overload conditional operator  precedence of operator or hierarchy of operator of C++  php for while operator  php AND operator  php while operator  "while operator"  php while operator  while operator  & * operator in c++  php while +operator  operator c++ ^= += -= *= /=  while operator ftp  while operator php  while operator php  What is an operator in c++