Home > Back-end >  Passers-by for help: ask a, b, c in the condition of minimum expression
Passers-by for help: ask a, b, c in the condition of minimum expression

Time:10-14

As title,
please?Just on the c language experiment, don't know how to use the conditional expression to evaluate

CodePudding user response:

Write directly without testing: return (a> b? b> c? C: b: a);

CodePudding user response:

CodePudding user response:

reference 3 floor wise men know already should good karma response:
thanks!

CodePudding user response:

https://bbs.csdn.net/topics/395012541

CodePudding user response:

Simple, can get this done in two min not STD: : min (STD: : min (a, b), c);

CodePudding user response:

Weixin_42696540
reference 4 floor response:
Quote: refer to the third floor the wise know already should good karma response:
thanks!

Don't write, if you want to compare how do you speak ten variables do, I guess you dizzy directly