question about conditional operator (?:)

Cauterite via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 26 06:17:21 PDT 2016


On Tuesday, 26 July 2016 at 13:09:28 UTC, Richard wrote:
> Hello all,

try using some parentheses:
(n%p==0) ? (n/=p) : (p+=1) ;


More information about the Digitalmars-d-learn mailing list