All public logs
From Applied Science
Combined display of all available logs of Applied Science. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 17:43, 17 April 2022 0kelvin talk contribs created page Conditional operator (Created page with "* '''The same algorithm that tests if a number is odd or even, this time with the '?:' operator (ternary or conditional operator):''' int a;<br /> a % 2 == 0 ? printf("the number %d is even", a) : printf("the number %d is odd", a); The ''''?:'''' operator simplifies the ''''if else'''' statements into a single line of code, an expression formed through one conditional and two commands. There are two differences between using ''''if else'''' or the conditional operator:...")