当前位置:网站首页>What are the advantages of commas in conditional statements- What is the advantage of commas in a conditional statement?

What are the advantages of commas in conditional statements- What is the advantage of commas in a conditional statement?

2022-07-07 08:36:00 French red wine sweet

problem :

We can write an if statement as We could write one if Sentence as

if (a == 5, b == 6, ... , thisMustBeTrue)

and only the last condition should be satisfiable to enter the if body. And only the last condition can be met to enter if body .

why is it allowed? Why is it allowed ?


Solution :

Reference resources : https://stackoom.com/en/question/2Goyg
原网站

版权声明
本文为[French red wine sweet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130634212747.html