Quantcast
Viewing all articles
Browse latest Browse all 10

Answer by Faizan S. for Two if conditions or one if with OR

Well, I don't know if it's appropriate but: It doesn't matter in this case.

Do not too much of micro-optimizing.

But to answer your question, stick with the readably one.

The fastest solution would be something like this:

bool res = cond1 || cond2;

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>